【发布时间】:2018-01-25 10:06:35
【问题描述】:
我有以下 circleCi 配置:
version: 2
jobs:
build:
machine: true
branches:
ignore: gh-pages
steps:
- run: echo "Skipping tests on gh-pages branch"
deployment:
machine:
node:
version: 6.11.2
npm:
version: 3.10.10
branch: ci
steps:
- run: git config --global user.email "<GITHUB_USERNAME>@users.noreply.github.com"
- run: git config --global user.name "<YOUR_NAME>"
- run: echo "machine github.com login <GITHUB_USERNAME> password $GITHUB_TOKEN" > ~/.netrc
- run: cd website && npm install && GIT_USER=<GIT_USER> npm run publish-gh-pages
旨在在我的 github 页面上部署 https://docusaurus.io/ 站点。
实际上,当 CI 在 ci 分支上运行时,它应该运行 deployment 作业。
实际上,deployment 作业从未被触发,我不明白为什么。
我正在构建我的 ci 分支
这是我的circleci构建:
【问题讨论】: