Skip to content

Commit

Permalink
Fix docs workflow (#200)
Browse files Browse the repository at this point in the history
* Add token to workflow

* Reorder

* Use github secret with push action
  • Loading branch information
ashwinvaidya17 committed Apr 6, 2022
1 parent 15378f3 commit cc1731d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
else
echo "Branch gh-pages already exists"
fi
- name: Push docs to gh-pages branch
- name: Commit docs to gh-pages branch
run: |
git fetch
git checkout gh-pages
Expand All @@ -59,4 +59,8 @@ jobs:
git config --local user.name "GitHub Action"
git add .
git commit -m "Update documentation" -a || true
git push origin gh-pages
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages

0 comments on commit cc1731d

Please sign in to comment.