Skip to content

Commit

Permalink
dont use DOTNET_ROOT variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nruffing committed Nov 22, 2023
1 parent 7fad5ab commit f738363
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
- main

env:
DOTNET_ROOT: ''
VERSION: ''
EXISTING_VERSIONS: ''
ESCAPED_VERSION: ''
Expand All @@ -25,12 +24,12 @@ jobs:
with:
dotnet-version: '8.x'
- name: dotnet pack
run: dotnet pack -c Release -o ${{env.DOTNET_ROOT}}/lib-pack
run: dotnet pack -c Release -o lib-pack
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: lib-pack
path: ${{env.DOTNET_ROOT}}/lib-pack
path: ${{github.workflow}}/lib-pack

example_api_build:
runs-on: ubuntu-latest
Expand All @@ -46,12 +45,12 @@ jobs:
- name: Build with dotnet
run: dotnet build --configuration Release
- name: dotnet publish
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/example-api
run: dotnet publish -c Release -o example-api-release
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: example-api
path: ${{env.DOTNET_ROOT}}/example-api
path: ${{github.workflow}}/example-api-release

lib_should_publish:
runs-on: ubuntu-latest
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/example_api_ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: Example API CI/CD
on:
workflow_dispatch:

env:
DOTNET_ROOT: ''

jobs:
example_api_build:
runs-on: ubuntu-latest
Expand All @@ -21,12 +18,12 @@ jobs:
- name: Build with dotnet
run: dotnet build --configuration Release
- name: dotnet publish
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/example-api
run: dotnet publish -c Release -o example-api-release
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: example-api
path: ${{env.DOTNET_ROOT}}/example-api
path: ${{github.workflow}}/example-api-release

example_api_deploy:
runs-on: ubuntu-latest
Expand Down

0 comments on commit f738363

Please sign in to comment.