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:
1818
1919 - run : npm install --no-package-lock
2020 - run : npm test
21- - run : npm build-storybook
21+ - run : npm run build-storybook
2222
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
2545 uses : JamesIves/github-pages-deploy-action@4.1.4
2646 with :
27- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2847 BRANCH : gh-pages
2948 FOLDER : examples
3049 CLEAN : true # Automatically remove deleted files from the deploy branch
You can’t perform that action at this time.
0 commit comments