Skip to content

fix : fetching weekly schedule form sunjects to the dashbord for atte… #26

fix : fetching weekly schedule form sunjects to the dashbord for atte…

fix : fetching weekly schedule form sunjects to the dashbord for atte… #26

Workflow file for this run

name: Build and deploy Node.js app to Azure Web App - 8track
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up Node.js version
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: npm install, build, and test
working-directory: ./backend
run: |
npm install
npm run build --if-present
npm run test --if-present
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: node-app
path: ./backend
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
id-token: write
contents: read
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: node-app
- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_168D2541464848019C3879BFE4D09B65 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_627D6B368D9B403C91C18F8A714DE8AB }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_88C6B56ADC954E40807A7F0EC4BA68D4 }}
- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: '8track'
slot-name: 'Production'
package: .