diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 7ab8755..6f4c718 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -7,7 +7,6 @@ on: - main env: - DOTNET_ROOT: '' VERSION: '' EXISTING_VERSIONS: '' ESCAPED_VERSION: '' @@ -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 @@ -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 diff --git a/.github/workflows/example_api_ci_cd.yml b/.github/workflows/example_api_ci_cd.yml index 96819e0..c5fdf5a 100644 --- a/.github/workflows/example_api_ci_cd.yml +++ b/.github/workflows/example_api_ci_cd.yml @@ -3,9 +3,6 @@ name: Example API CI/CD on: workflow_dispatch: -env: - DOTNET_ROOT: '' - jobs: example_api_build: runs-on: ubuntu-latest @@ -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