Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
11Ajinkya authored Feb 15, 2024
1 parent 2752b09 commit 7a9fc5f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: deployment
name: Azure Static Web App Deployment

on:
push:
Expand All @@ -18,15 +18,17 @@ jobs:
with:
node-version: '18'

- name: build app
run: |
yarn
yarn build
- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Deploy WebApp to Static Web App
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE }}
action: 'upload'
#app_location: 'webapp'
#api_location: ''
#app_location: '/'
#api_location: 'api'
output_location: './dist'

0 comments on commit 7a9fc5f

Please sign in to comment.