Skip to content

Commit

Permalink
Merge pull request #1179 from OneCommunityGlobal/development
Browse files Browse the repository at this point in the history
Backend Release to Main [2.08]
  • Loading branch information
one-community authored Dec 17, 2024
2 parents 4341924 + 424ca84 commit 43805ca
Show file tree
Hide file tree
Showing 75 changed files with 5,596 additions and 676 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/development_hgn-rest-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# 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 Node.js app to Azure Web App - hgn-rest-dev

on:
push:
branches:
- development
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Node.js version
uses: actions/setup-node@v3
with:
node-version: 14

- name: npm install, build, and test
run: |
npm install
npm run build --if-present
- name: Zip artifact for deployment
run: zip release.zip ./* -r

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: node-app
path: release.zip

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: node-app

- name: Unzip artifact for deployment
run: unzip release.zip

- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: 'hgn-rest-dev'
slot-name: 'Production'
package: .
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_37BDFCF15560478F9069CEF1EA105BF0 }}
4 changes: 2 additions & 2 deletions .github/workflows/main_hgn-rest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
Expand All @@ -50,7 +50,7 @@ jobs:

- name: Unzip artifact for deployment
run: unzip release.zip

- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
Expand Down
Loading

0 comments on commit 43805ca

Please sign in to comment.