Skip to content

Commit 82f018b

Browse files
committed
ci: use push
1 parent 8832f94 commit 82f018b

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/docs.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,21 @@ jobs:
2929
with:
3030
path: 'gh-pages'
3131
ref: gh-pages
32+
persist-credentials: false
33+
fetch-depth: 0
3234

3335
- name: Move .git to build
3436
run: mv './gh-pages/.git' './build'
3537

36-
- name: Push to pages
37-
continue-on-error: true
38+
- name: Set git config
3839
run: |
39-
cd './build'
4040
git config user.name github-actions
4141
git config user.email [email protected]
42-
git add .
43-
git commit -m "Update pages"
44-
git push
42+
git config receive.denynonfastforwards false
43+
44+
- name: Push to pages
45+
continue-on-error: true
46+
uses: jcs-actions/github-push-action@master
47+
with:
48+
github_token: ${{ secrets.PAT }}
49+
branch: gh-pages

0 commit comments

Comments
 (0)