Skip to content

Commit

Permalink
update .yml
Browse files Browse the repository at this point in the history
  • Loading branch information
m-riley04 committed Aug 20, 2024
1 parent 8f78b76 commit e8ea674
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/main_twist-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,35 +25,35 @@ jobs:
run: dotnet build --configuration Release

- name: dotnet publish
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
run: dotnet publish -c Release -o ${{github.workspace}}/output

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: .net-app
path: ${{env.DOTNET_ROOT}}/myapp
path: ${{github.workspace}}/output

deploy:
runs-on: windows-latest
needs: build
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
uses: actions/download-artifact@v4
with:
name: .net-app

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_B1ACA998B004475C8D573BE9CC4B90E5 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_D8322C8F16D1487AB3BD22173B60D2A6 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_C6F6C0EF153040289650C4B3C12AA27A }}

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_B1ACA998B004475C8D573BE9CC4B90E5 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_D8322C8F16D1487AB3BD22173B60D2A6 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_C6F6C0EF153040289650C4B3C12AA27A }}

- name: Deploy to Azure Web App
id: deploy-to-webapp
Expand Down
Empty file added output/.empty
Empty file.

0 comments on commit e8ea674

Please sign in to comment.