Skip to content

Commit

Permalink
ci: changed location dirs for storybook builds [no ci]
Browse files Browse the repository at this point in the history
now in root, ex "./web-storybook", "./b2c-storybook"
  • Loading branch information
Yakutoc committed Nov 20, 2023
1 parent 888e335 commit 1ea9256
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/documentation-main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Main Documentation and Storybook

on:
workflow_dispatch:
workflow_run:
workflows: ["Release"]
branches: [master]
Expand Down Expand Up @@ -28,13 +29,15 @@ jobs:
- name: Prepare repository
run: git fetch --unshallow --tags

- uses: ./.github/actions/prepare-environment
- name: Prepare environment
uses: ./.github/actions/prepare-environment

- name: Lerna bootstrap
run: npx lerna bootstrap

- name: Prepare directory
run: mkdir s3_build
- name: Prepare directories
run: |
mkdir -p s3_build s3_build_sb
- name: Plasma Website
run: |
Expand Down Expand Up @@ -63,17 +66,17 @@ jobs:
- name: Plasma UI Storybook
run: |
npm run storybook:build --prefix="./packages/plasma-ui"
cp -R ./packages/plasma-ui/build-sb ./s3_build/next-${{ github.sha }}/ui-storybook
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/next-${{ github.sha }}/web-storybook
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/next-${{ github.sha }}/b2c-storybook
cp -R ./packages/plasma-b2c/build-sb ./s3_build_sb/b2c-storybook
- name: Plasma Temple Storybook
run: |
Expand All @@ -97,3 +100,18 @@ jobs:
sync
./s3_build/next-${{ github.sha }}/
s3://${{ secrets.AWS_S3_BUCKET_2 }}/current/
- name: s3 Upload storybook 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_sb/
s3://${{ secrets.AWS_S3_BUCKET_2 }}/

0 comments on commit 1ea9256

Please sign in to comment.