Skip to content

Commit

Permalink
Update ci_cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nruffing authored Nov 19, 2023
1 parent fb6713b commit f0a9cdc
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,31 @@ jobs:
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: .net-app
name: example-api
path: ${{env.DOTNET_ROOT}}/example-api

lib_pack:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./DataGridVueDotnet
steps:
- uses: actions/checkout@v4
- name: Set up .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.x'
- name: dotnet pack
run: dotnet pack -c Release -o ${{env.DOTNET_ROOT}}/lib-pack
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: lib-pack
path: ${{env.DOTNET_ROOT}}/lib-pack

example_api_deploy:
runs-on: ubuntu-latest
needs: example_api_build
needs: [example_api_build, lib_pack]
defaults:
run:
working-directory: ./DataGridVueDotnetExample
Expand All @@ -41,7 +60,7 @@ jobs:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: .net-app
name: example-api
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
Expand Down

0 comments on commit f0a9cdc

Please sign in to comment.