File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 2424 run : dotnet build --no-restore
2525 - name : Test
2626 run : dotnet test --no-build --verbosity normal
27+ - name : dotnet publish
28+ run : dotnet publish UrlShortener.Api -c Release -o ${{env.DOTNET_ROOT}}/myapp
29+ - name : Upload artifact for deployment job
30+ uses : actions/upload-artifact@v4
31+ with :
32+ name : .net-app
33+ path : ${{env.DOTNET_ROOT}}/myapp
34+
35+
36+ deploy-dev :
37+ runs-on : ubuntu-latest
38+ needs : build
39+ environment : Development
40+
41+ steps :
42+ - name : Download artifact from build job
43+ uses : actions/download-artifact@v4
44+ with :
45+ name : .net-app
46+
47+ - name : Deploy to Azure Web App
48+ uses : azure/webapps-deploy@v3
49+ with :
50+ app-name : ${{ vars.API_RESOURCE_NAME }}
51+ slot-name : ' production'
52+ publish-profile : ${{ secrets.AZURE_API_PUBLISH_PROFILE }}
53+ package : ${{ github.workspace }}/.net-app
You can’t perform that action at this time.
0 commit comments