Skip to content

Commit

Permalink
fix(#9): Release package only
Browse files Browse the repository at this point in the history
  • Loading branch information
snovak7 committed May 13, 2024
1 parent 15b9182 commit faffa04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ jobs:

- name: Pack .NET Solution
run: dotnet pack --configuration Release --no-build --output pack/
# if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }}
if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }}

- name: Publish .NET Solution to GitHub Packages
continue-on-error: true
run: dotnet nuget push pack/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }}
if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }}

- name: Store .NET Package
uses: actions/upload-artifact@v4
Expand All @@ -53,9 +53,9 @@ jobs:
if-no-files-found: error
retention-days: 7
path: pack/*.nupkg
# if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }}
if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }}

- name: Publish .NET Solution to NuGet.org
continue-on-error: true
run: dotnet nuget push pack/*.nupkg --api-key ${{ secrets.NUGET_ORG_KEY }} --source nuget
if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }}
if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }}

0 comments on commit faffa04

Please sign in to comment.