Skip to content

Commit 6d8ff93

Browse files
committed
chore: upload storybook-static to S3
1 parent cb02ebb commit 6d8ff93

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/checks.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030

3131
build-storybook:
3232
runs-on: ubuntu-latest
33+
environment: CI
3334

3435
strategy:
3536
matrix:
@@ -45,9 +46,13 @@ jobs:
4546
cache: "npm"
4647
- run: npm ci
4748
- run: npm run build-storybook
48-
- name: Save storybook static
49-
uses: actions/upload-artifact@v4
49+
- name: Upload storybook static
50+
uses: jakejarvis/[email protected]
5051
with:
51-
name: storybook static
52-
path: |
53-
storybook-static
52+
args: --acl public-read --follow-symlinks
53+
env:
54+
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
55+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
56+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
57+
SOURCE_DIR: 'storybook-static'
58+
DEST_DIR: '/storybook-static/${{ github.ref_name }}-${{ github.run_number }}-${{ github.run_attempt }}/'

0 commit comments

Comments
 (0)