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

Commit

Permalink
Browse files Browse the repository at this point in the history
…a-2-server into Sprint-3
  • Loading branch information
kndonetm committed Nov 13, 2023
2 parents abbb93c + 4147d11 commit aa74724
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/deployment_azure-app-service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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: .

0 comments on commit aa74724

Please sign in to comment.