Skip to content

Commit b7eae69

Browse files
committed
Another version of the deployment file
1 parent fd1a14d commit b7eae69

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/main_astar-dev.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ env:
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read #This is required for actions/checkout
17+
1518
steps:
1619
- uses: actions/checkout@v4
1720
- name: Setup .NET SDK
@@ -34,6 +37,13 @@ jobs:
3437
deploy:
3538
runs-on: ubuntu-latest
3639
needs: build
40+
environment:
41+
name: 'Production'
42+
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
43+
permissions:
44+
id-token: write #This is required for requesting the JWT
45+
contents: read #This is required for actions/checkout
46+
3747
steps:
3848
- name: Download artifact from build job
3949
uses: actions/download-artifact@v4
@@ -49,7 +59,7 @@ jobs:
4959
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_3FEB324333C140D8A0FA99AC083AEB82 }}
5060

5161
- name: Deploy to Azure WebApp
52-
uses: azure/webapps-deploy@v2
62+
uses: azure/webapps-deploy@v3
5363
with:
5464
app-name: ${{ env.AZURE_WEBAPP_NAME }}
5565
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}

0 commit comments

Comments
 (0)