Skip to content

Commit 0bdc5b8

Browse files
committed
fix
1 parent 0046ca6 commit 0bdc5b8

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,14 @@ jobs:
6767
6868
- name: Deploy to GitHub Pages
6969
run: |
70-
cd web_playground
71-
git config --global user.name 'github-actions[bot]'
72-
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
73-
bash publish.sh
70+
cd web_playground/public
71+
git init
72+
git remote add origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
73+
git checkout -b gh-pages
74+
git config user.name 'github-actions[bot]'
75+
git config user.email 'github-actions[bot]@users.noreply.github.com'
76+
git add --all --force
77+
git commit -m "Deploy web playground"
78+
git push -f origin gh-pages
7479
env:
7580
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)