v4.1.0 #912
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
name: 'Dev deployments' | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
storybook_deploy: | |
name: Deploy storybook | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: develop | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '20.x' | |
- name: npm install | |
run: npm ci | |
- name: build css | |
run: npm run build-css | |
- name: deploy storybook | |
run: npm run deploy-storybook -- --bucket-path=webui-mds-sb-dev --aws-profile=NONE --ci | |
env: | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_KEY }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_KEY_ID }} | |
AWS_REGION: ${{ secrets.DOCS_REGION }} | |
site_deploy: | |
name: Deploy docs site | |
needs: storybook_deploy | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./docs | |
env: | |
DOCS_BUCKET: webui-mds-docs-dev | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '20.x' | |
- name: npm install | |
run: npm i | |
- name: extract stories | |
run: npm run extract | |
env: | |
STORYBOOK_HOST: 'https://mds-dev.innovaccer.com/iframe.html?id=components-avatar-avatargroup-all--all&args=&viewMode=story' | |
- name: build | |
run: npm run build | |
env: | |
DOCS_BUCKET: webui-mds-docs-dev | |
- name: deploy | |
run: npm run deploy && aws cloudfront create-invalidation --distribution-id ${{ secrets.DISTRIBUTION_ID }} --paths "/*" | |
env: | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_KEY }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_KEY_ID }} | |
AWS_REGION: ${{ secrets.DOCS_REGION }} | |
- name: test | |
run: npm run test |