Skip to content

Commit

Permalink
Merge pull request #106 from cmccandless/fix-deploy
Browse files Browse the repository at this point in the history
fetch and merge origin/gh-pages before push
  • Loading branch information
cmccandless committed Nov 30, 2020
2 parents f8f1215 + 099aa0e commit e186f32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy-to-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ jobs:
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

0 comments on commit e186f32

Please sign in to comment.