Skip to content

Commit cd575f9

Browse files
authored
Merge pull request #490 from neuromatch/staging
Remove gh pages push action and use the cli in previous step
2 parents 7e8c1b4 + 806ed7c commit cd575f9

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

.github/workflows/publish-book.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
- name: Checkout
2121
uses: actions/checkout@v3
2222
with:
23-
persist-credentials: false
2423
fetch-depth: 0
2524

2625
- name: Get commit message
@@ -80,15 +79,8 @@ jobs:
8079
jupyter-book build book
8180
python ci/parse_html_for_errors.py student
8281
83-
- name: Commit book
82+
- name: Publish to gh-pages
8483
run: |
8584
git config --local user.email "action@github.com"
8685
git config --local user.name "GitHub Action"
87-
ghp-import -n -c "neuroai.neuromatch.io" -m "Update course book" book/_build/html
88-
89-
- name: Publish to gh-pages
90-
uses: ad-m/github-push-action@v0.6.0
91-
with:
92-
github_token: ${{ secrets.GITHUB_TOKEN }}
93-
branch: gh-pages
94-
force: true
86+
ghp-import -n -p -f -c "neuroai.neuromatch.io" -m "Update course book" book/_build/html

0 commit comments

Comments
 (0)