Skip to content

Commit f9e2d65

Browse files
committed
Update and expand ci steps
1 parent 374dce6 commit f9e2d65

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff 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/[email protected]
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

0 commit comments

Comments
 (0)