Skip to content

Commit

Permalink
Another attempt at gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Sep 26, 2019
1 parent f779d28 commit f71bf60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ jobs:
run: |
cd target/doc
git init
git remote add origin https://x-access-token:${{ secrets.github_token }}@github.com/${{ github.repository }}
git fetch origin
git reset --hard "origin/gh-pages^" --
git add .
git -c user.name='ci' -c user.email='ci' commit -m init
git push -f -q https://x-access-token:${{ secrets.github_token }}@github.com/${{ github.repository }} HEAD:gh-pages
git push -f -q origin HEAD:gh-pages
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'

0 comments on commit f71bf60

Please sign in to comment.