File tree Expand file tree Collapse file tree 1 file changed +23
-4
lines changed Expand file tree Collapse file tree 1 file changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,32 @@ jobs:
18
18
19
19
- run : npm install --no-package-lock
20
20
- run : npm test
21
- - run : npm build-storybook
21
+ - run : npm run build-storybook
22
22
23
- - name : Deploy storybook
24
- if : github.ref == 'refs/heads/master' && matrix.node-version == 'v16.x'
23
+ - uses : actions/upload-artifact@v2
24
+ # TODO: if: github.ref == 'refs/heads/master' && matrix.node-version == 'v16.x'
25
+ if : matrix.node-version == 'v16.x'
26
+ with :
27
+ name : examples
28
+ path : examples/*
29
+ if-no-files-found : error
30
+
31
+ publish :
32
+ name : Deploy storybook examples
33
+ runs-on : ubuntu-latest
34
+ needs : build
35
+
36
+ steps :
37
+ - uses : actions/checkout@v2
38
+
39
+ - uses : actions/download-artifact@v2
40
+ with :
41
+ name : examples
42
+ path : examples
43
+
44
+ - name : Deploy to gh-pages
25
45
26
46
with :
27
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
47
BRANCH : gh-pages
29
48
FOLDER : examples
30
49
CLEAN : true # Automatically remove deleted files from the deploy branch
You can’t perform that action at this time.
0 commit comments