Skip to content

Commit

Permalink
use github-pages-deploy-action
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccandless committed Nov 30, 2020
1 parent cba1f75 commit 3f8948a
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/deploy-to-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,8 @@ jobs:
- name: Build
run: python generate.py

- name: Push to gh-pages
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "no-reply@github.com"
git add index.md
git commit -m 'Deploy to gh-pages'
git checkout -b gh-pages
if git fetch origin gh-pages; then
git merge origin/gh-pages
fi
git push origin gh-pages:gh-pages
- uses: JamesIves/github-pages-deploy-action@132898c54c57c7cc6b80eb3a89968de8fc283505
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: .

0 comments on commit 3f8948a

Please sign in to comment.