Bash Travis CI部署生成文件不在git repo中

Bash Travis CI部署生成文件不在git repo中,bash,electron,travis-ci,electron-builder,Bash,Electron,Travis Ci,Electron Builder,嗨,我需要一些帮助来设置我的travis ci部署 我认为问题的根源在于,在github repo中,我没有想要部署的构建文件。正如在.gitignore文件中一样,我有build/文件夹,生成我的构建 .travis.yml文件 我知道在安装之前我应该在travis文件的下有一些代码,但正如我不熟悉bash一样,我不知道如何从我的build文件夹中正确引用.dmg文件。(build/*.dmg) 正如我所说,构建文件夹被排除在git回购之外 Travis CI错误日志为: HEAD det

嗨,我需要一些帮助来设置我的travis ci部署

我认为问题的根源在于,在github repo中,我没有想要部署的构建文件。正如在
.gitignore
文件中一样,我有
build/
文件夹,生成我的构建

.travis.yml
文件



我知道在安装之前我应该在travis文件的
下有一些代码,但正如我不熟悉bash一样,我不知道如何从我的
build
文件夹中正确引用
.dmg
文件。(
build/*.dmg

正如我所说,构建文件夹被排除在git回购之外

Travis CI错误日志为:

HEAD detached at ca6dfb3
Untracked files:
  (use "git add <file>..." to include in what will be committed)
    yarn.lock
nothing added to commit but untracked files present (use "git add" to track)
Dropped refs/stash@{0} (8ab81738da8330c59a8d91b0b3cef454b607dd3d)
/Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/provider/s3.rb:47:in `chdir': No such file or directory @ dir_chdir - build/*.dmg (Errno::ENOENT)
    from /Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/provider/s3.rb:47:in `push_app'
    from /Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/provider.rb:154:in `block in deploy'
    from /Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/cli.rb:41:in `fold'
    from /Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/provider.rb:154:in `deploy'
    from /Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/provider/s3.rb:75:in `deploy'
    from /Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/cli.rb:32:in `run'
    from /Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/cli.rb:7:in `run'
    from /Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/bin/dpl:5:in `<top (required)>'
    from /Users/travis/.rvm/gems/ruby-2.4.1/bin/dpl:23:in `load'
    from /Users/travis/.rvm/gems/ruby-2.4.1/bin/dpl:23:in `<main>'
failed to deploy
/Users/travis/.travis/job_stages: line 878: shell_session_update: command not found
头部在ca6dfb3处分离
未跟踪的文件:
(使用“git add…”包含在将提交的内容中)
纱线锁
提交时未添加任何内容,但存在未跟踪的文件(使用“git add”跟踪)
丢弃的引用/隐藏{0}(8ab81738da8330c59a8d91b0b3cef454b607dd3d)
/Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/provider/s3.rb:47:在'chdir'中:没有这样的文件或目录@dir\u chdir-build/*.dmg(Errno::enoint)
来自/Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/provider/s3.rb:47:“推送应用程序”中
from/Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/provider.rb:154:在“部署中的块”中
from/Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/cli.rb:41:in“fold”
from/Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/provider.rb:154:在“部署”中
from/Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/provider/s3.rb:75:在“部署”中
from/Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/cli.rb:32:in'run'
from/Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/cli.rb:7:在“运行”中
from/Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/bin/dpl:5:in`'
from/Users/travis/.rvm/gems/ruby-2.4.1/bin/dpl:23:in'load'
from/Users/travis/.rvm/gems/ruby-2.4.1/bin/dpl:23:in`'
未能部署
/Users/travis/.travis/job\u stages:第878行:shell\u会话\u更新:未找到命令
请参阅

前面的示例几乎肯定不是理想的,因为您可能希望上载构建的二进制文件和文档。将
skip_cleanup
设置为
true
,以防止Travis CI删除构建工件

前面的示例几乎肯定不是理想的,因为您可能希望上载构建的二进制文件和文档。将
skip_cleanup
设置为
true
,以防止Travis CI删除构建工件


这成功了!但是,在指向特定的文件扩展名build/*.dmg后,它仍然会中断。你知道吗?
local\u dir
显然是一个目录名,而不是全局模式。在部署前的
中,或者:a)您希望创建一个目录,将
build/*.dmg
文件移动到该目录(并相应地调整
local\u dir
值);或者b)删除
build
中与模式不匹配的所有文件。这成功了!但是,在指向特定的文件扩展名build/*.dmg后,它仍然会中断。你知道吗?
local\u dir
显然是一个目录名,而不是全局模式。在部署前的
中,或者:a)您希望创建一个目录,将
build/*.dmg
文件移动到该目录(并相应地调整
local\u dir
值);或b)删除
build
中与模式不匹配的所有文件。
HEAD detached at ca6dfb3
Untracked files:
  (use "git add <file>..." to include in what will be committed)
    yarn.lock
nothing added to commit but untracked files present (use "git add" to track)
Dropped refs/stash@{0} (8ab81738da8330c59a8d91b0b3cef454b607dd3d)
/Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/provider/s3.rb:47:in `chdir': No such file or directory @ dir_chdir - build/*.dmg (Errno::ENOENT)
    from /Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/provider/s3.rb:47:in `push_app'
    from /Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/provider.rb:154:in `block in deploy'
    from /Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/cli.rb:41:in `fold'
    from /Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/provider.rb:154:in `deploy'
    from /Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/provider/s3.rb:75:in `deploy'
    from /Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/cli.rb:32:in `run'
    from /Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/lib/dpl/cli.rb:7:in `run'
    from /Users/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.8.40/bin/dpl:5:in `<top (required)>'
    from /Users/travis/.rvm/gems/ruby-2.4.1/bin/dpl:23:in `load'
    from /Users/travis/.rvm/gems/ruby-2.4.1/bin/dpl:23:in `<main>'
failed to deploy
/Users/travis/.travis/job_stages: line 878: shell_session_update: command not found