File tree Expand file tree Collapse file tree 1 file changed +19
-9
lines changed Expand file tree Collapse file tree 1 file changed +19
-9
lines changed Original file line number Diff line number Diff line change 7
7
- master
8
8
9
9
jobs :
10
- deploy :
11
- concurrency :
12
- group : pages
13
- cancel-in-progress : true
10
+ build :
14
11
runs-on : ubuntu-latest
15
12
steps :
16
13
- uses : actions/checkout@v3
@@ -32,13 +29,26 @@ jobs:
32
29
key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
33
30
restore-keys : |
34
31
${{ runner.os }}-pnpm-store-
35
-
36
32
- name : Install
37
33
run : pnpm i
38
34
- name : Build
39
35
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
42
38
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
You can’t perform that action at this time.
0 commit comments