4

Lektor docs の Travis CI トリガー アプローチを使用して、プル リクエストとコミットに応答して自動的に展開しようとしている Lektor サイトを持っています。

Lektor の設定は、コマンド ラインから正常に機能します。

Travis のビルドが開始され、問題なくサイトがビルドされているように見えますが、デプロイが開始されると、ログには次のように表示されます。

Installing deploy dependencies
!!! Script support is experimental !!!

Preparing deploy
Cleaning up git repository with `git stash --all`. If you need build artifacts for deployment, set `deploy.skip_cleanup: true`. See https://docs.travis-ci.com/user/deployment/#Uploading-Files.
No local changes to save

Deploying application
Deploying to ghpages-https
  Build cache: /home/travis/.cache/lektor/builds/d3a411e13041731555222b901cff4248
  Target: ghpages+https://pybee/pybee.github.io?cname=pybee.org
  Initialized empty Git repository in /home/travis/build/pybee/pybee.github.io/temp/.deploytemp9xhRDc/scratch/.git/
  Fetching origin
  fatal: repository 'https://github.com/pybee/pybee.github.io/' not found
  error: Could not fetch origin
  fatal: repository 'https://github.com/pybee/pybee.github.io/' not found
Done!

完全なログについては、こちらを参照してください

リポジトリの Travis CI 構成で資格情報を確認しました。私は彼らが正しいとできる限り確信しています。同じ構成 (エクスポートLEKTOR_DEPLOY_USERNAMELEKTOR_DEPLOY_PASSWORDローカル) を使用してみましたが、正常に動作します。

hammer:pybee.org rkm$ lektor deploy ghpages-https
Deploying to ghpages-https
  Build cache: /Users/rkm/Library/Caches/Lektor/builds/a269cf944d4302f15f78a1dfb1602486
  Target: ghpages+https://pybee/pybee.github.io?cname=pybee.org
  Initialized empty Git repository in /Users/rkm/projects/beeware/pybee.org/temp/.deploytempOh4p98/scratch/.git/
  Fetching origin
  From https://github.com/pybee/pybee.github.io
   * [new branch]      master     -> origin/master
  On branch master
  Your branch is up-to-date with 'origin/master'.
  nothing to commit, working directory clean
  Everything up-to-date
Done!

このエラーの原因に関する提案はありますか?

4

1 に答える 1

2

これはLektorのバグであることが判明しました。

で次を使用する場合<project>.lektorproject:

[servers.ghpages-https]
target = ghpages+https://pybee/pybee.github.io?cname=pybee.org

そしてあなたの次の.travis.yml

language: python
python: 2.7
cache:
  directories:
    - $HOME/.cache/pip
    - $HOME/.cache/lektor/builds
install: "pip install git+https://github.com/singingwolfboy/lektor.git@fix-ghpages-https-deploy#egg=lektor"
script: "lektor build"
deploy:
  provider: script
  script: "lektor deploy ghpages-https"
  on:
    branch: lektor

(つまり、展開に PR ブランチを使用する)、ビルドは期待どおりに展開されます。

于 2016-07-06T05:23:46.183 に答える