Skip to content

Update main.yml

Update main.yml #22

Workflow file for this run

name: deployment
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js version
uses: actions/setup-node@v2
with:
node-version: '20'
- name: build app
run: |
yarn install
yarn build
- name: Deploy WebApp to Static Web App
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.MANAGE_DEPLOYMENT_TOKEN }}
# Used for GitHub integrations (i.e. PR comments)
action: 'upload'
#app_location: 'auth-app'
#api_location: ''
output_location: './dist'
env:
MY_GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}