Skip to content

Commit 858a9d3

Browse files
committed
Test offical action
1 parent 8cadc3e commit 858a9d3

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

.github/workflows/gh-pages.yaml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ on:
77
- master
88

99
jobs:
10-
deploy:
11-
concurrency:
12-
group: pages
13-
cancel-in-progress: true
10+
build:
1411
runs-on: ubuntu-latest
1512
steps:
1613
- uses: actions/checkout@v3
@@ -32,13 +29,26 @@ jobs:
3229
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
3330
restore-keys: |
3431
${{ runner.os }}-pnpm-store-
35-
3632
- name: Install
3733
run: pnpm i
3834
- name: Build
3935
run: pnpm build-storybook
40-
- name: Deploy to pages branch
41-
uses: peaceiris/actions-gh-pages@v3
36+
- name: Upload your page as github pages artifact
37+
uses: actions/upload-pages-artifact@main
4238
with:
43-
github_token: ${{ secrets.GITHUB_TOKEN }}
44-
publish_dir: ./storybook-static
39+
path: storybook-static
40+
41+
deploy:
42+
needs: build
43+
environment:
44+
name: github-pages
45+
permissions:
46+
pages: write # to deploy to Pages
47+
id-token: write # to verify the deployment originates from an appropriate source
48+
concurrency:
49+
group: pages
50+
cancel-in-progress: true
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Deploy to pages branch
54+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)