Skip to content

Commit 8fc3da1

Browse files
committed
Change deploy CI
1 parent 2229d00 commit 8fc3da1

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/static.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,12 @@ concurrency:
1717

1818
jobs:
1919
deploy:
20-
environment:
21-
name: github-pages
22-
url: ${{ steps.deployment.outputs.page_url }}
2320
runs-on: ubuntu-latest
2421
steps:
2522
- name: Checkout
26-
uses: actions/checkout@v3
27-
- name: Setup Pages
28-
uses: actions/configure-pages@v3
29-
- name: Upload artifact
30-
uses: actions/upload-pages-artifact@v3
23+
uses: actions/checkout@v4
24+
- name: Deploy static folder to GitHub Pages
25+
uses: peaceiris/actions-gh-pages@v4
3126
with:
32-
path: 'demo'
33-
- name: Deploy to GitHub Pages
34-
id: deployment
35-
uses: actions/deploy-pages@v1
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_dir: ./demo

0 commit comments

Comments
 (0)