Skip to content

Commit fd254b3

Browse files
authored
Update main_mytasksapi.yml
1 parent da400fe commit fd254b3

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/main_mytasksapi.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2-
# More GitHub Actions for Azure: https://github.com/Azure/actions
3-
41
name: Build and deploy ASP.Net Core app to Azure Web App - mytasksapi
52

63
on:
@@ -13,7 +10,7 @@ jobs:
1310
build:
1411
runs-on: ubuntu-latest
1512
permissions:
16-
contents: read #This is required for actions/checkout
13+
contents: read
1714

1815
steps:
1916
- uses: actions/checkout@v4
@@ -24,10 +21,14 @@ jobs:
2421
dotnet-version: '8.x'
2522

2623
- name: Build with dotnet
27-
run: dotnet build --configuration Release
24+
run: |
25+
cd Api
26+
dotnet build --configuration Release
2827
2928
- name: dotnet publish
30-
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
29+
run: |
30+
cd Api
31+
dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
3132
3233
- name: Upload artifact for deployment job
3334
uses: actions/upload-artifact@v4
@@ -38,8 +39,8 @@ jobs:
3839
deploy:
3940
runs-on: ubuntu-latest
4041
needs: build
41-
environment:
42-
name: 'Production'
42+
environment:
43+
name: 'Production'
4344
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
4445

4546
steps:
@@ -55,4 +56,4 @@ jobs:
5556
app-name: 'mytasksapi'
5657
slot-name: 'Production'
5758
package: .
58-
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_173327727B6B4615B356540D1F1EFE3A }}
59+
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_173327727B6B4615B356540D1F1EFE3A }}

0 commit comments

Comments
 (0)