There was an error while loading. Please reload this page.
1 parent e477587 commit ed5cc3bCopy full SHA for ed5cc3b
1 file changed
.github/workflows/deploy-demo.yml
@@ -9,6 +9,13 @@ on:
9
jobs:
10
deploy:
11
runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: read
14
+ pages: write
15
+ id-token: write
16
+ environment:
17
+ name: github-pages
18
+ url: ${{ steps.deployment.outputs.page_url }}
19
20
strategy:
21
matrix:
@@ -34,9 +41,12 @@ jobs:
34
41
- name: Build demo
35
42
run: pnpm run build:demo
36
43
44
+ - name: Upload Pages artifact
45
+ uses: actions/upload-pages-artifact@v3
46
+ with:
47
+ path: "./dist-demo"
48
+
37
49
- name: Deploy to GitHub Pages
50
+ id: deployment
38
51
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
39
- uses: peaceiris/actions-gh-pages@v3
40
- with:
- github_token: ${{ secrets.GITHUB_TOKEN }}
- publish_dir: ./dist-demo
52
+ uses: actions/deploy-pages@v4
0 commit comments