Skip to content

Update main.yml

Update main.yml #36

Workflow file for this run

name: deployment
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js version
uses: actions/setup-node@v2
with:
node-version: '18'
- name: build app
run: |
yarn
yarn 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: ''
output_location: './dist'