Skip to content

Commit

Permalink
update net60-aspnetcore.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubakimoto authored May 6, 2024
1 parent 0700506 commit a5ba03a
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/net60-aspnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,29 +50,28 @@ jobs:
name: .net-app
path: ${{ env.DOTNET_ROOT }}/myapp

deploy:
deploy-aspnetcore6:
runs-on: ubuntu-latest

needs: build-aspnetcore6

environment: Production
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v2
with:
name: .net-app

- name: Az CLI Login
uses: azure/login@v1
uses: azure/login@v2
with:
client-id: ${{ vars.AZURE_CLIENT_ID }}
tenant-id: ${{ vars.AZURE_TENANT_ID }}
subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: 'Run Azure webapp deploy action'
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: ${{ vars.AZURE_WEBAPP_NAME }}
app-name: ${{ vars.AZURE_WEBAPP_NAME }}-dotnet6
slot-name: 'Production'
package: .

Expand Down

0 comments on commit a5ba03a

Please sign in to comment.