Skip to content

Commit cccbf17

Browse files
authored
Update pages.yml
1 parent 2b5e244 commit cccbf17

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/pages.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ jobs:
6464
uses: actions/upload-pages-artifact@v1
6565
with:
6666
path: ./public
67-
- name: Push to gh_pages branch
68-
run: |
69-
git config --global user.name 'BachMacThanh'
70-
git config --global user.email '[email protected]'
71-
git add public/*
72-
git commit -m 'Deploy to gh_pages branch'
73-
git push origin HEAD:gh_pages
67+
- name: Push to GitHub Pages branch
68+
69+
uses: ftnext/[email protected]
70+
with:
71+
build_dir: public
72+
github_token: ${{ secrets.TOKEN }}
73+
7474

7575
# Deployment job
7676
deploy:

0 commit comments

Comments
 (0)