Skip to content

Commit cdc970e

Browse files
authored
Update pages.yml
1 parent 30d47ef commit cdc970e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/pages.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,8 @@ jobs:
8080
- name: Deploy to GitHub Pages
8181
id: deployment
8282
uses: actions/deploy-pages@v2
83-
- name: Push to gh_pages branch
84-
run: |
85-
git config --global user.name 'github-actions[bot]'
86-
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
87-
git add .
88-
git commit -m 'Deploy to gh_pages branch'
89-
git push origin HEAD:gh_pages
83+
- name: Deploy
84+
uses: peaceiris/actions-gh-pages@v4
85+
with:
86+
github_token: ${{ secrets.GITHUB_TOKEN }}
87+
publish_branch: gh-pages # default: gh-pages

0 commit comments

Comments
 (0)