Skip to content

Commit

Permalink
Fix publishing artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszgarstecki committed Nov 27, 2023
1 parent 47388ab commit 317bf09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,19 @@ jobs:
name: test_results.zip
path: backend/TestResults/*.trx
- name: Pack AppRating Contracts
if: ${{ needs.prepare.outputs.publish_artifacts == '1' }}
if: ${{ steps.version.outputs.publish_artifacts == '1' }}
env:
BUILD_VERSION: ${{ steps.version.outputs.version }}
run: dotnet pack --no-build -c Release -p:Version=$BUILD_VERSION
working-directory: ./backend/src/LeanCode.AppRating.Contracts
- name: Pack AppRating
if: ${{ needs.prepare.outputs.publish_artifacts == '1' }}
if: ${{ steps.version.outputs.publish_artifacts == '1' }}
env:
BUILD_VERSION: ${{ steps.version.outputs.version }}
run: dotnet pack --no-build -c Release -p:Version=$BUILD_VERSION
working-directory: ./backend/src/LeanCode.AppRating
- name: Publish to Feedz
if: ${{ needs.prepare.outputs.publish_artifacts == '1' }}
if: ${{ steps.version.outputs.publish_artifacts == '1' }}
run: |
dotnet nuget push \
"src/LeanCode.AppRating.Contracts/bin/Release/LeanCode.AppRating.Contracts.${BUILD_VERSION}.nupkg" \
Expand All @@ -139,7 +139,7 @@ jobs:
BUILD_VERSION: ${{ steps.version.outputs.version }}
FEEDZ_API_KEY: ${{ secrets.FEEDZ_API_KEY }}
- name: Publish to Nuget
if: ${{ needs.prepare.outputs.publish_nuget == '1' }}
if: ${{ steps.version.outputs.publish_nuget == '1' }}
run: |
dotnet nuget push \
"src/LeanCode.AppRating.Contracts/bin/Release/LeanCode.AppRating.Contracts.${BUILD_VERSION}.nupkg" \
Expand Down

0 comments on commit 317bf09

Please sign in to comment.