Update main_briefing-bot-app.yml
This commit is contained in:
parent
ee6c5cce07
commit
a49974f954
1 changed files with 14 additions and 14 deletions
28
.github/workflows/main_briefing-bot-app.yml
vendored
28
.github/workflows/main_briefing-bot-app.yml
vendored
|
|
@ -27,7 +27,7 @@ jobs:
|
|||
run: |
|
||||
npm install
|
||||
npm run build --if-present
|
||||
npm run test --if-present
|
||||
# npm run test --if-present
|
||||
|
||||
- name: Zip artifact for deployment
|
||||
run: zip release.zip ./* -r
|
||||
|
|
@ -41,12 +41,12 @@ jobs:
|
|||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
environment:
|
||||
name: 'Production'
|
||||
environment:
|
||||
name: 'Production'
|
||||
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
|
||||
permissions:
|
||||
id-token: write #This is required for requesting the JWT
|
||||
contents: read #This is required for actions/checkout
|
||||
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
|
||||
|
|
@ -56,13 +56,13 @@ jobs:
|
|||
|
||||
- name: Unzip artifact for deployment
|
||||
run: unzip release.zip
|
||||
|
||||
- name: Login to Azure
|
||||
uses: azure/login@v2
|
||||
with:
|
||||
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_629245ED6D494162901B0409210722E4 }}
|
||||
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_C28941656153485A901B2F32605467FA }}
|
||||
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_998386AD93914062AB1F0F6A4B2F2BF6 }}
|
||||
|
||||
- name: Login to Azure
|
||||
uses: azure/login@v2
|
||||
with:
|
||||
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_629245ED6D494162901B0409210722E4 }}
|
||||
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_C28941656153485A901B2F32605467FA }}
|
||||
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_998386AD93914062AB1F0F6A4B2F2BF6 }}
|
||||
|
||||
- name: 'Deploy to Azure Web App'
|
||||
id: deploy-to-webapp
|
||||
|
|
@ -71,4 +71,4 @@ jobs:
|
|||
app-name: 'briefing-bot-app'
|
||||
slot-name: 'Production'
|
||||
package: .
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue