-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,8 +28,9 @@ jobs: | |
- run: npm ci | ||
- run: npm test | ||
|
||
build-storybook: | ||
deploy-static: | ||
runs-on: ubuntu-latest | ||
environment: CI | ||
|
||
strategy: | ||
matrix: | ||
|
@@ -45,9 +46,38 @@ jobs: | |
cache: "npm" | ||
- run: npm ci | ||
- run: npm run build-storybook | ||
- name: Save storybook static | ||
uses: actions/upload-artifact@v4 | ||
- run: npm run build | ||
env: | ||
DOCUSAURUS_URL: https://storage.yandexcloud.net | ||
DOCUSAURUS_BASE_URL: testplane-docs/website-static/${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}/ | ||
- name: Upload storybook static | ||
uses: jakejarvis/[email protected] | ||
with: | ||
name: storybook static | ||
path: | | ||
storybook-static | ||
args: --acl public-read --follow-symlinks | ||
env: | ||
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_S3_ENDPOINT: https://s3.yandexcloud.net/ | ||
SOURCE_DIR: 'storybook-static' | ||
DEST_DIR: 'testplane-docs/storybook-static/${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}/' | ||
- name: Upload website static | ||
uses: jakejarvis/[email protected] | ||
with: | ||
args: --acl public-read --follow-symlinks | ||
env: | ||
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_S3_ENDPOINT: https://s3.yandexcloud.net/ | ||
SOURCE_DIR: 'build' | ||
DEST_DIR: 'testplane-docs/website-static/${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}/' | ||
- name: Comment PR with links to deployed static | ||
uses: thollander/actions-comment-pull-request@v2 | ||
with: | ||
message: | | ||
### :rocket: Successfully deployed static | ||
- [Docs website](https://storage.yandexcloud.net/testplane-ci/testplane-docs/website-static/${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}/index.html) | ||
- [Storybook](https://storage.yandexcloud.net/testplane-ci/testplane-docs/storybook-static/${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}/index.html) | ||
comment_tag: deployment_status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters