File tree 1 file changed +19
-5
lines changed
1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change 30
30
31
31
build-storybook :
32
32
runs-on : ubuntu-latest
33
+ environment : CI
33
34
34
35
strategy :
35
36
matrix :
45
46
cache : " npm"
46
47
- run : npm ci
47
48
- 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]
50
51
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
You can’t perform that action at this time.
0 commit comments