Skip to content

Commit 4297c9d

Browse files
committed
chore: upload storybook-static to S3
1 parent cb02ebb commit 4297c9d

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.github/workflows/checks.yml

+19-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,22 @@ 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+
AWS_S3_ENDPOINT: https://s3.yandexcloud.net/
58+
SOURCE_DIR: 'storybook-static'
59+
DEST_DIR: 'testplane-docs/storybook-static/${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}/'
60+
- name: Comment PR with links to deployed static
61+
uses: thollander/actions-comment-pull-request@v2
62+
with:
63+
message: |
64+
### :rocket: Successfully deployed static
65+
66+
- [Storybook](https://storage.yandexcloud.net/testplane-ci/testplane-docs/storybook-static/${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}/index.html)
67+
comment_tag: deployment_status

0 commit comments

Comments
 (0)