Skip to content

Commit 5bc900b

Browse files
authored
Merge pull request #9 from selfmadecode/feature/add-implementations
update publish file
2 parents 5bd29af + ef7ea6e commit 5bc900b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ jobs:
2323
- name: Build solution
2424
run: dotnet build Throttlr.Api.RateLimit.sln --configuration Release --no-restore
2525

26-
# ${{ github.ref_name#v }} strips the leading v we add in the release on github ex. v1.0.0.
27-
# So a GitHub tag v1.0.0 becomes 1.0.0 for NuGet.
2826
- name: Pack NuGet package
29-
run: dotnet pack src/Throttlr.Api.RateLimit/RateLimit.Throttlr.csproj --configuration Release -o ./artifacts /p:PackageVersion=${{ github.ref_name#v }}
27+
run: dotnet pack src/Throttlr.Api.RateLimit/RateLimit.Throttlr.csproj --configuration Release -o ./artifacts /p:PackageVersion=${{ github.ref_name }}
3028

3129
- name: Publish to NuGet
3230
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)