Add GH Action, deploy storybook UI to static site

This commit is contained in:
Ethan Chumley 2020-10-12 16:12:41 +00:00 коммит произвёл GitHub
Родитель 8d9f3e1abe
Коммит 5b8ea0cb76
1 изменённых файлов: 25 добавлений и 0 удалений

25
.github/workflows/deploy_storybook_site.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,25 @@
on:
push:
branches:
-main
name: Publish Storybook
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.STORYBOOK_AZURE_DEPLOY_CREDENTIALS }}
- name: NPM Build Storybook
run: npm install && npm run build-storybook
- name: Upload to blob static site storage
uses: azure/CLI@v1
with:
azcliversion: 2.0.72
inlineScript: |
az storage blob upload-batch --account-name ${{ secrets.STORYBOOK_STORAGE_ACCOUNT_NAME }} -d '$web' -s storybook-static