Skip to content

Commit

Permalink
Swap order of steps
Browse files Browse the repository at this point in the history
Login to Azure immediately before needing the credentials so that if downloading the Artifacts takes too long the JWT doesn't expire.
  • Loading branch information
martincostello committed Aug 21, 2023
1 parent 9f8eb2c commit ac38a00
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,18 @@ jobs:

steps:

- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: webapp

- name: Azure log in
uses: azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # v1.4.7
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: webapp

- name: Deploy to Azure App Service
uses: azure/webapps-deploy@v2
id: deploy_production
Expand Down

0 comments on commit ac38a00

Please sign in to comment.