Skip to content

Commit

Permalink
build(bernerslee): storybook deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
nowseemee committed Apr 26, 2021
1 parent 7cf3ba4 commit faecba0
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/bernerslee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: bernerslee
on:
push:
branches:
- bernerslee

jobs:
deploy-bernerslee:
runs-on: ubuntu-latest
environment: BERNERSLEE
steps:
- uses: actions/checkout@v2

- name: Restore Lerna
id: yarn-cache
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

- name: Install project dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn

- name: Run Lerna bootstrap
run: |
yarn bootstrap
- name: Build Components
run: |
cd packages/components
yarn build
- name: Build Storybook
run: |
cd packages/storybook-vue
yarn build --quiet
- name: ZIP Storybook
run: |
cd packages/storybook-vue/storybook-static
zip -r deploy.zip .
- name: Upload to S3
run: |
aws --region eu-central-1 s3 cp packages/storybook-vue/storybook-static/deploy.zip s3://scale-bernerslee/
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 comments on commit faecba0

Please sign in to comment.