Skip to content

Commit 0c77ae6

Browse files
author
Flow-Pie
committed
Minor improvements
1 parent a39bd75 commit 0c77ae6

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

.github/workflows/main_app-votingapp-be-dev-southafricanorth-04.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
permissions:
16-
contents: read #This is required for actions/checkout
16+
contents: read # Required for actions/checkout
1717

1818
steps:
1919
- uses: actions/checkout@v4
@@ -24,10 +24,10 @@ jobs:
2424
dotnet-version: '8.x'
2525

2626
- name: Build with dotnet
27-
run: dotnet build --configuration Release
27+
run: dotnet build OnlineVotingSystem.api/OnlineVotingSystem.api/OnlineVotingSystem.api.csproj --configuration Release
2828

2929
- name: dotnet publish
30-
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
30+
run: dotnet publish OnlineVotingSystem.api/OnlineVotingSystem.api/OnlineVotingSystem.api.csproj -c Release -o ${{env.DOTNET_ROOT}}/myapp
3131

3232
- name: Upload artifact for deployment job
3333
uses: actions/upload-artifact@v4
@@ -38,25 +38,25 @@ jobs:
3838
deploy:
3939
runs-on: ubuntu-latest
4040
needs: build
41-
environment:
42-
name: 'Production'
41+
environment:
42+
name: 'Production'
4343
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
44-
permissions:
45-
id-token: write #This is required for requesting the JWT
46-
contents: read #This is required for actions/checkout
44+
permissions:
45+
id-token: write # Required for requesting the JWT
46+
contents: read # Required for actions/checkout
4747

4848
steps:
4949
- name: Download artifact from build job
5050
uses: actions/download-artifact@v4
5151
with:
5252
name: .net-app
53-
54-
- name: Login to Azure
55-
uses: azure/login@v2
56-
with:
57-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_3030C16A88384205A21091FEFE4E496B }}
58-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_F02477210B094001A146AEB06B05C1C0 }}
59-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_AA532CA124A44B76B94FDA62E1F62A11 }}
53+
54+
- name: Login to Azure
55+
uses: azure/login@v2
56+
with:
57+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_3030C16A88384205A21091FEFE4E496B }}
58+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_F02477210B094001A146AEB06B05C1C0 }}
59+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_AA532CA124A44B76B94FDA62E1F62A11 }}
6060

6161
- name: Deploy to Azure Web App
6262
id: deploy-to-webapp
@@ -65,4 +65,3 @@ jobs:
6565
app-name: 'app-votingapp-be-dev-southafricanorth-04'
6666
slot-name: 'Production'
6767
package: .
68-

0 commit comments

Comments
 (0)