UI-Improvement: Implemented Smooth Scrolling in About Page #145
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and deploy Node.js app to Azure Web App - wave-tone-backend | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read #This is required for actions/checkout | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js version | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '22.x' | |
| - name: npm install, build, and test | |
| working-directory: CodeBase/server | |
| run: | | |
| npm install | |
| npm run test --if-present | |
| - name: Zip package for deployment | |
| run: | | |
| cd CodeBase/server | |
| zip -r ../../release.zip . | |
| - 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 | |
| permissions: | |
| id-token: write #This is required for requesting the JWT | |
| contents: read #This is required for actions/checkout | |
| 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_E998F84422F243CA8D1FD54891DF4CED }} | |
| tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_1E55626593FB46868CBB9DE58DD4B721 }} | |
| subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_145F03FD5BAF404784B06D592CAEE7EC }} | |
| - name: 'Deploy to Azure Web App' | |
| id: deploy-to-webapp | |
| uses: azure/webapps-deploy@v3 | |
| with: | |
| app-name: 'wave-tone-backend' | |
| slot-name: 'Production' | |
| package: release.zip | |