Skip to content

[DEV-3676] Added icons #301

[DEV-3676] Added icons

[DEV-3676] Added icons #301

Workflow file for this run

name: Storybook CI
on:
push:
branches: [develop]
workflow_dispatch:
env:
NODE_VERSION: "16.x"
AZURE_ACCOUNT_NAME: "stdfxstbdev"
AZURE_CDN_PROFILE: "cdnp-dfx-stb-dev"
AZURE_CDN_ENDPOINT: "cdne-dfx-stb-dev"
AZURE_RESOURCE_GROUP: "rg-dfx-stb-dev"
jobs:
build:
name: Build and deploy to Storybook
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login
uses: azure/login@v2
with:
creds: ${{ secrets.DEV_CREDENTIALS }}
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install packages
run: |
cd packages/react-components && npm ci
- name: Build code
run: |
cd packages/react-components && npm run build-storybook
- name: Deploy to Azure Storage (DEV)
uses: azure/CLI@v2
with:
inlineScript: |
az storage blob upload-batch --account-name ${{ env.AZURE_ACCOUNT_NAME }} -d '$web' -s ./packages/react-components/storybook-static --overwrite
- name: Purge CDN endpoint (DEV)
uses: azure/CLI@v2
with:
inlineScript: |
az cdn endpoint purge --content-paths "/*" --profile-name ${{ env.AZURE_CDN_PROFILE }} --name ${{ env.AZURE_CDN_ENDPOINT }} --resource-group ${{ env.AZURE_RESOURCE_GROUP }}
- name: Logout
run: |
az logout
if: always()