Skip to content

Commit e2e843f

Browse files
authored
NuGet: Artifact glob pattern (#10)
* fix(#9): fixed glob, allow artifact per action * fix(#9): Pack first * fix(#9): Release package only
1 parent 40dbb3e commit e2e843f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,23 @@ jobs:
3939

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

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

4949
- name: Store .NET Package
5050
uses: actions/upload-artifact@v4
5151
with:
5252
name: nuget
5353
if-no-files-found: error
5454
retention-days: 7
55-
path: pack/*.(s?)nupkg
56-
if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }}
55+
path: pack/*.nupkg
56+
if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }}
5757

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

0 commit comments

Comments
 (0)