Skip to content

Commit

Permalink
Keep package from CI build as an artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
jahav committed Sep 1, 2024
1 parent 85e884f commit 1b29632
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,16 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
files: tests/Sanctuary.Core.Tests/TestResults/**/coverage.opencover.xml

- name: Pack Sanctuary.Core
- name: Pack DataIsland.Core
if: startsWith(github.ref, 'refs/tags/')
run: dotnet pack src/Sanctuary.Core/Sanctuary.Core.csproj --configuration Release /p:PackageVersion=1.0.0-${{ github.run_number }}-${{ github.sha }}

- name: Archive Core package
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: src/Sanctuary.Core/Sanctuary.Core/bin/Release/*.nupkg

- name: Publish
if: startsWith(github.ref, 'refs/tags/')
run: dotnet nuget push src/Sanctuary.Core/bin/Release/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/jahav/index.json"

0 comments on commit 1b29632

Please sign in to comment.