Skip to content

Commit c22fef1

Browse files
committed
Hopefully this solves the death by snupkg issue.
1 parent b01df8f commit c22fef1

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/Publish-Package.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- created
77

88
jobs:
9-
build:
9+
Publish:
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -27,19 +27,16 @@ jobs:
2727

2828
- name: Build
2929
run: dotnet build --no-restore --configuration=Release -p:Version=${{ steps.git_version.outputs.version-without-v }}
30-
31-
# - name: Test
32-
# run: dotnet test --no-build --verbosity normal
33-
30+
3431
- name: Release to GitHub
3532
uses: softprops/action-gh-release@v1
3633
if: startsWith(github.ref, 'refs/tags/')
3734
env:
3835
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3936
with:
40-
fail_on_unmatched_files: true
37+
fail_on_unmatched_files: true # needs action-gh-release@v2 but that doesn't exist yet, gives a warning now
4138
files: '**/*.nupkg'
4239

4340
- name: Release to NuGet.org
4441
if: startsWith(github.ref, 'refs/tags/')
45-
run: nuget push **/*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
42+
run: nuget push **/*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} -NoSymbols

0 commit comments

Comments
 (0)