Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

refactor: update default settings to match new schema #41

refactor: update default settings to match new schema

refactor: update default settings to match new schema #41

# 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: Deploy Node.js express app to Azure Web App - compact-donuts
on:
push:
branches:
- main
- 'Sprint-[0-9]'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js version
uses: actions/setup-node@v1
with:
node-version: '18.x'
- name: Install dependencies with yarn
run: |
echo 'Get latest yarn'
yarn set version stable
echo 'Install dependencies'
yarn install --immutable
- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
id: deploy-to-webapp
with:
app-name: 'unboundmnl-area-2-backend'
slot-name: 'Production'
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: .