Skip to content

Commit f71bf60

Browse files
committed
Another attempt at gh-pages
1 parent f779d28 commit f71bf60

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ jobs:
4747
run: |
4848
cd target/doc
4949
git init
50+
git remote add origin https://x-access-token:${{ secrets.github_token }}@github.com/${{ github.repository }}
51+
git fetch origin
52+
git reset --hard "origin/gh-pages^" --
5053
git add .
5154
git -c user.name='ci' -c user.email='ci' commit -m init
52-
git push -f -q https://x-access-token:${{ secrets.github_token }}@github.com/${{ github.repository }} HEAD:gh-pages
55+
git push -f -q origin HEAD:gh-pages
5356
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'

0 commit comments

Comments
 (0)