Skip to content

Commit b549e19

Browse files
authored
Update pages.yml
1 parent 98a66b6 commit b549e19

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,6 +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 'github-actions[bot]'
70+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
71+
git add public/*
72+
git commit -m 'Deploy to gh_pages branch'
73+
git push origin HEAD:gh_pages
6774
6875
# Deployment job
6976
deploy:
@@ -80,10 +87,3 @@ jobs:
8087
- name: Deploy to GitHub Pages
8188
id: deployment
8289
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 public/*
88-
git commit -m 'Deploy to gh_pages branch'
89-
git push origin HEAD:gh_pages

0 commit comments

Comments
 (0)