fix team names after Jamie fucked them. #37
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
| # Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action | |
| # More GitHub Actions for Azure: https://github.com/Azure/actions | |
| name: 'Application Automation Dev' | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - 'master' | |
| env: | |
| NODE_VERSION: '18.x' | |
| AZURE_FUNCTIONAPP_NAME: 'dscrd-appauto-usce-func-dev' | |
| AZURE_FUNCTIONAPP_PACKAGE_PATH: 'package.zip' | |
| jobs: | |
| build-and-deploy: | |
| runs-on: 'ubuntu-latest' | |
| environment: 'dev' | |
| steps: | |
| - name: 'Checkout Repository' | |
| uses: 'actions/checkout@v2' | |
| - name: 'Setup Node ${{ env.NODE_VERSION }} Environment' | |
| uses: 'actions/setup-node@v1' | |
| with: | |
| node-version: '${{ env.NODE_VERSION }}' | |
| - name: 'Authenticate with Azure' | |
| uses: 'azure/login@v1' | |
| with: | |
| creds: '${{ secrets.AZURE_CREDENTIALS }}' | |
| - name: 'Resolve Project Dependencies Using Npm' | |
| shell: 'bash' | |
| run: | | |
| npm install | |
| - name: 'Build Package' | |
| shell: 'bash' | |
| run: | | |
| npm pack | |
| npm run zip | |
| - name: 'Push Configuration Settings' | |
| uses: 'azure/appservice-settings@v1' | |
| with: | |
| app-name: '${{ env.AZURE_FUNCTIONAPP_NAME }}' | |
| app-settings-json: '${{ secrets.APP_SETTINGS }}' | |
| general-settings-json: '{"alwaysOn": "false", "webSocketsEnabled": "true"}' | |
| - name: 'Deploy Function' | |
| uses: 'azure/functions-action@v1' | |
| with: | |
| app-name: '${{ env.AZURE_FUNCTIONAPP_NAME }}' | |
| package: '${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}' |