Skip to content

Commit

Permalink
ci: Update Azure Static Web Apps workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
daveboster authored Dec 15, 2023
1 parent 13f45e6 commit ccd4545
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/azure-static-web-apps-zealous-hill-0b3409510.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,30 @@ jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
name: Build and Deploy Storybook
strategy:
matrix:
node-version: [20.x] # [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
lfs: false
- name: Build And Deploy

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: NPM Install
run: |
npm install
- name: Build Storybook
run: |
npm run build-storybook
- name: Deploy Storybook
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
Expand All @@ -28,9 +45,8 @@ jobs:
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "${{ github.workspace }}/src/boster.dev/_site" # App source code path
api_location: "" # Api source code path - optional
output_location: "" # Built app content directory - optional
app_location: "${{ github.workspace }}/storybook-static" # App source code path
skip_app_build: true
###### End of Repository/Build Configurations ######

close_pull_request_job:
Expand Down

0 comments on commit ccd4545

Please sign in to comment.