Skip to content

Commit

Permalink
Update deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
KnotzerIO committed Mar 27, 2024
1 parent 0c3ea09 commit e9e6abb
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/main_pathpal-navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm run test --if-present
npm run build
- name: Zip artifact for deployment
run: zip release.zip ./* -r
run: zip release.zip ./* -r -x .git/\* .github/\* node_modules/\* .gitignore

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
Expand All @@ -42,8 +42,8 @@ jobs:
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT
permissions:
id-token: write #This is required for requesting the JWT

steps:
- name: Download artifact from build job
Expand All @@ -53,13 +53,13 @@ jobs:

- name: Unzip artifact for deployment
run: unzip release.zip

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_AABB1F8CDA194BFB9BB0A1E6C448E06D }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_AFFFCAB6E99D42BF9205C656A1C925B5 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_D4B4883118E540ED8FD11C9629F964D8 }}

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_AABB1F8CDA194BFB9BB0A1E6C448E06D }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_AFFFCAB6E99D42BF9205C656A1C925B5 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_D4B4883118E540ED8FD11C9629F964D8 }}

- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
Expand Down

0 comments on commit e9e6abb

Please sign in to comment.