Skip to content

Commit

Permalink
[publish] adjust workflow to accomodate private publishing to RocketW…
Browse files Browse the repository at this point in the history
…erkz hosted nuget feed
  • Loading branch information
hpatchett committed Feb 28, 2025
1 parent 9d6f9ce commit 8ad687c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ jobs:
run: dotnet restore
- name: Test
run: dotnet test --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput='./lcov.info' /p:ExcludeByAttribute="Tomlet.Attributes.NoCoverageAttribute"
- name: Upload test coverage
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./Tomlet.Tests/lcov.info
- name: Build
run: dotnet build -c Release
- name: Upload NuGet Artifact
Expand All @@ -34,5 +29,5 @@ jobs:
- name: Upload to NuGet
if: contains(github.event.head_commit.message, '[publish]') == true && github.event_name == 'push'
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: dotnet nuget push ./Tomlet/bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY
NUGET_API_KEY: ${{ secrets.GH_PAT }}
run: dotnet nuget push ./Tomlet/bin/Release/*.nupkg -s https://nuget.pkg.github.com/RocketWerkz/index.json -k $NUGET_API_KEY

0 comments on commit 8ad687c

Please sign in to comment.