File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Package Storybook
2+
3+ on :
4+ workflow_dispatch : # This makes it manually triggerable from GitHub UI
5+
6+ jobs :
7+ build-and-release :
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - uses : actions/checkout@v4
12+
13+ - name : Setup Node.js
14+ uses : actions/setup-node@v4
15+ with :
16+ node-version : ' 18'
17+
18+ - name : Install Dependencies
19+ working-directory : ./storybook
20+ run : npm install
21+
22+ - name : Build Storybook
23+ working-directory : ./storybook
24+ run : npm run build-storybook
25+
26+ - name : Create Zip Archive
27+ working-directory : ./storybook
28+ run : zip -r storybook-static.zip storybook-static/
29+
30+ - name : Create Release
31+ uses : softprops/action-gh-release@v1
32+ with :
33+ files : ./storybook/storybook-static.zip
34+ tag_name : storybook-${{ github.run_number }}
35+ name : Storybook Build ${{ github.run_number }}
36+ body : Automated Storybook build
37+ draft : false
38+ prerelease : false
39+ env :
40+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments