-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into release_2024-02-14
# Conflicts: # .github/workflows/documentation-main.yml
- Loading branch information
Showing
4,023 changed files
with
198,579 additions
and
45,892 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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
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
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 |
---|---|---|
@@ -0,0 +1,219 @@ | ||
name: Deploy documentation and storybook artifacts to DEV stage | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_run: | ||
workflows: [Release RC] | ||
types: [completed] | ||
|
||
jobs: | ||
deploy: | ||
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
show-progress: false | ||
|
||
- name: Prepare environment | ||
uses: ./.github/actions/prepare-environment | ||
|
||
- name: Lerna bootstrap | ||
run: npx lerna bootstrap | ||
|
||
- name: Prepare directories | ||
run: | | ||
mkdir -p s3_build s3_build_sb | ||
- name: Plasma Website | ||
run: | | ||
npm run build --prefix="./website/plasma-website" | ||
cp -R ./website/plasma-website/build ./s3_build/next-${{ github.sha }} | ||
- name: Plasma UI Docs | ||
run: | | ||
npm run build --prefix="./website/plasma-ui-docs" | ||
cp -R ./website/plasma-ui-docs/build ./s3_build/next-${{ github.sha }}/ui | ||
- name: Plasma Web Docs | ||
run: | | ||
npm run build --prefix="./website/plasma-web-docs" | ||
cp -R ./website/plasma-web-docs/build ./s3_build/next-${{ github.sha }}/web | ||
- name: Plasma UI Storybook | ||
run: | | ||
npm run storybook:build --prefix="./packages/plasma-ui" | ||
cp -R ./packages/plasma-ui/build-sb ./s3_build_sb/ui-storybook | ||
- name: Plasma Web Storybook | ||
run: | | ||
npm run storybook:build --prefix="./packages/plasma-web" | ||
cp -R ./packages/plasma-web/build-sb ./s3_build_sb/web-storybook | ||
- name: Plasma B2C Storybook | ||
run: | | ||
npm run storybook:build --prefix="./packages/plasma-b2c" | ||
cp -R ./packages/plasma-b2c/build-sb ./s3_build_sb/b2c-storybook | ||
- name: Plasma "ASDK" Storybook | ||
run: | | ||
npm run storybook:build --prefix="./packages/plasma-asdk" | ||
cp -R ./packages/plasma-asdk/build-sb ./s3_build_sb/asdk-storybook | ||
- name: Plasma "New-hope" Storybook | ||
run: | | ||
npm run storybook:build --prefix="./packages/plasma-new-hope" | ||
cp -R ./packages/plasma-new-hope/build-sb ./s3_build_sb/new-hope-storybook | ||
- name: Plasma "Caldera" Storybook | ||
run: | | ||
npm run storybook:build --prefix="./packages/caldera" | ||
cp -R ./packages/caldera/build-sb ./s3_build_sb/caldera-storybook | ||
- name: Plasma "Caldera-online" Storybook | ||
run: | | ||
npm run storybook:build --prefix="./packages/caldera-online" | ||
cp -R ./packages/caldera-online/build-sb ./s3_build_sb/caldera-online-storybook | ||
- name: Plasma "SDDS SRVC" Storybook | ||
run: | | ||
npm run storybook:build --prefix="./packages/sdds-srvc" | ||
cp -R ./packages/sdds-srvc/build-sb ./s3_build_sb/sdds-srvc-storybook | ||
- name: Install s3cmd | ||
run: pip3 install s3cmd | ||
|
||
- name: Upload documentation build | ||
run: > | ||
s3cmd | ||
--access_key ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
--secret_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
--host ${{ secrets.AWS_ENDPOINT }} | ||
--host-bucket ${{ secrets.AWS_ENDPOINT }} | ||
--bucket-location ${{ secrets.AWS_REGION }} | ||
--signature-v2 | ||
--delete-removed | ||
--no-mime-magic | ||
sync | ||
./s3_build/next-${{ github.sha }}/ | ||
s3://${{ secrets.AWS_S3_BUCKET_DEV_STAGE }}/current/ | ||
- name: Upload to S3 storybook "Plasma-UI" | ||
run: > | ||
s3cmd | ||
--access_key ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
--secret_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
--host ${{ secrets.AWS_ENDPOINT }} | ||
--host-bucket ${{ secrets.AWS_ENDPOINT }} | ||
--bucket-location ${{ secrets.AWS_REGION }} | ||
--signature-v2 | ||
--delete-removed | ||
--no-mime-magic | ||
sync | ||
./s3_build_sb/ui-storybook/ | ||
s3://${{ secrets.AWS_S3_BUCKET_DEV_STAGE }}/ui-storybook/ | ||
- name: Upload to S3 storybook "Plasma-Web" | ||
run: > | ||
s3cmd | ||
--access_key ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
--secret_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
--host ${{ secrets.AWS_ENDPOINT }} | ||
--host-bucket ${{ secrets.AWS_ENDPOINT }} | ||
--bucket-location ${{ secrets.AWS_REGION }} | ||
--signature-v2 | ||
--delete-removed | ||
--no-mime-magic | ||
sync | ||
./s3_build_sb/web-storybook/ | ||
s3://${{ secrets.AWS_S3_BUCKET_DEV_STAGE }}/web-storybook/ | ||
- name: Upload to S3 storybook "Plasma-b2c" | ||
run: > | ||
s3cmd | ||
--access_key ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
--secret_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
--host ${{ secrets.AWS_ENDPOINT }} | ||
--host-bucket ${{ secrets.AWS_ENDPOINT }} | ||
--bucket-location ${{ secrets.AWS_REGION }} | ||
--signature-v2 | ||
--delete-removed | ||
--no-mime-magic | ||
sync | ||
./s3_build_sb/b2c-storybook/ | ||
s3://${{ secrets.AWS_S3_BUCKET_DEV_STAGE }}/b2c-storybook/ | ||
- name: Upload to S3 storybook "Plasma-ASDK" | ||
run: > | ||
s3cmd | ||
--access_key ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
--secret_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
--host ${{ secrets.AWS_ENDPOINT }} | ||
--host-bucket ${{ secrets.AWS_ENDPOINT }} | ||
--bucket-location ${{ secrets.AWS_REGION }} | ||
--signature-v2 | ||
--delete-removed | ||
--no-mime-magic | ||
sync | ||
./s3_build_sb/asdk-storybook/ | ||
s3://${{ secrets.AWS_S3_BUCKET_DEV_STAGE }}/asdk-storybook/ | ||
- name: Upload to S3 storybook "Plasma-New-Hope" | ||
run: > | ||
s3cmd | ||
--access_key ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
--secret_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
--host ${{ secrets.AWS_ENDPOINT }} | ||
--host-bucket ${{ secrets.AWS_ENDPOINT }} | ||
--bucket-location ${{ secrets.AWS_REGION }} | ||
--signature-v2 | ||
--delete-removed | ||
--no-mime-magic | ||
sync | ||
./s3_build_sb/new-hope-storybook/ | ||
s3://${{ secrets.AWS_S3_BUCKET_DEV_STAGE }}/new-hope-storybook/ | ||
- name: Upload to S3 storybook "Caldera" | ||
run: > | ||
s3cmd | ||
--access_key ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
--secret_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
--host ${{ secrets.AWS_ENDPOINT }} | ||
--host-bucket ${{ secrets.AWS_ENDPOINT }} | ||
--bucket-location ${{ secrets.AWS_REGION }} | ||
--signature-v2 | ||
--delete-removed | ||
--no-mime-magic | ||
sync | ||
./s3_build_sb/caldera-storybook/ | ||
s3://${{ secrets.AWS_S3_BUCKET_DEV_STAGE }}/caldera-storybook/ | ||
- name: Upload to S3 storybook "Caldera-online" | ||
run: > | ||
s3cmd | ||
--access_key ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
--secret_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
--host ${{ secrets.AWS_ENDPOINT }} | ||
--host-bucket ${{ secrets.AWS_ENDPOINT }} | ||
--bucket-location ${{ secrets.AWS_REGION }} | ||
--signature-v2 | ||
--delete-removed | ||
--no-mime-magic | ||
sync | ||
./s3_build_sb/caldera-online-storybook/ | ||
s3://${{ secrets.AWS_S3_BUCKET_2 }}/caldera-online-storybook/ | ||
- name: Upload to S3 storybook "SDDS SRVC" | ||
run: > | ||
s3cmd | ||
--access_key ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
--secret_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
--host ${{ secrets.AWS_ENDPOINT }} | ||
--host-bucket ${{ secrets.AWS_ENDPOINT }} | ||
--bucket-location ${{ secrets.AWS_REGION }} | ||
--signature-v2 | ||
--delete-removed | ||
--no-mime-magic | ||
sync | ||
./s3_build_sb/sdds-srvc-storybook/ | ||
s3://${{ secrets.AWS_S3_BUCKET_DEV_STAGE }}/sdds-srvc-storybook/ |
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
Oops, something went wrong.