Skip to content

Commit

Permalink
Update azure-webapps-dotnet-core.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tooky authored May 2, 2024
1 parent 0bfd255 commit fc8b9b3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/azure-webapps-dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
branches: [ "main" ]
workflow_dispatch:

permissions:
id-token: write
contents: read
attestations: write

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -59,12 +64,17 @@ jobs:
--artifact-type dir \
--name webapp
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/WaveApp"

# Deploy to Azure Web apps
- name: 'Run Azure webapp deploy action using Azure Credentials'
uses: azure/webapps-deploy@v3
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
package: '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp'
package: '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/WaveApp'

- name: logout
run: |
Expand Down

0 comments on commit fc8b9b3

Please sign in to comment.