Skip to content

Commit

Permalink
Bugfix for CI: main instead of master
Browse files Browse the repository at this point in the history
  • Loading branch information
danwos committed Dec 12, 2022
1 parent 945730d commit fc0a3fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/circular_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
# the following steps are only done after pushing to main or merging a PR
# clone and set up the old gh-pages branch
- name: Clone old gh-pages
if: ${{ github.event_name == 'schedule' && github.ref_name == 'master' || github.event.inputs.deploy == 'true' }}
if: ${{ github.event_name == 'schedule' && github.ref_name == 'main' || github.event.inputs.deploy == 'true' }}
run: |
set -x
git fetch
Expand All @@ -101,22 +101,22 @@ jobs:
# if a push and default branch, copy build to _gh-pages/ as the "main"
# deployment.
- name: Copy docs build
if: ${{ github.event_name == 'schedule' && github.ref_name == 'master' || github.event.inputs.deploy == 'true' }}
if: ${{ github.event_name == 'schedule' && github.ref_name == 'main' || github.event.inputs.deploy == 'true' }}
run: |
set -x
rsync -a docs/_build/html/ _gh-pages/
# add the .nojekyll file
- name: nojekyll
if: ${{ github.event_name == 'schedule' && github.ref_name == 'master' || github.event.inputs.deploy == 'true' }}
if: ${{ github.event_name == 'schedule' && github.ref_name == 'main' || github.event.inputs.deploy == 'true' }}
run: |
touch _gh-pages/.nojekyll
# deploy
# https://github.com/peaceiris/actions-gh-pages
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ (github.event_name == 'schedule' && github.ref_name == 'master' || github.event.inputs.deploy == 'true') && steps.gh_data_collect.conclusion == 'success' }}
if: ${{ (github.event_name == 'schedule' && github.ref_name == 'main' || github.event.inputs.deploy == 'true') && steps.gh_data_collect.conclusion == 'success' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit fc0a3fc

Please sign in to comment.