Skip to content

fix: main board required when not present (#167) #7

fix: main board required when not present (#167)

fix: main board required when not present (#167) #7

# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build and deploy backend
on:
push:
branches:
- master
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.14.0"
- name: npm install and build
run: |
cd backend
npm install
npm run build
- name: "Deploy to Azure Web App"
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: "ntnui-opptak-backend"
slot-name: "production"
publish-profile: ${{ secrets.AZURE_BACKEND_PUBLISH_PROFILE }}
package: ./backend