Skip to content

Commit

Permalink
Correct configuration for debug deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
VerdantForge committed Mar 30, 2024
1 parent b166ad4 commit eca8312
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/main_azwapp-neophyten-plattform-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
- name: Set up .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.x'
dotnet-version: "7.x"
include-prerelease: true

- name: Build with dotnet
run: dotnet build --configuration Release
run: dotnet build --configuration Debug

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

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
Expand All @@ -38,29 +38,28 @@ jobs:
runs-on: windows-latest
needs: build
environment:
name: 'Production'
name: "Development"
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@v3
with:
name: .net-app
- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_7EEEA414D2F74E569E2564692292A097 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_8D4641DD131C4A749DCAF10B75F90467 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_7398A38F1909481CB4194AE5CC7EFA64 }}

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_7EEEA414D2F74E569E2564692292A097 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_8D4641DD131C4A749DCAF10B75F90467 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_7398A38F1909481CB4194AE5CC7EFA64 }}

- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'azwapp-neophyten-plattform-dev'
slot-name: 'Production'
app-name: "azwapp-neophyten-plattform-dev"
slot-name: "Development"
package: .

0 comments on commit eca8312

Please sign in to comment.