Start configuring Nuget package publish

This commit is contained in:
Rikki Tooley 2020-06-26 17:37:00 +01:00
parent 8d09f8114c
commit 1764fb9d35
3 changed files with 9 additions and 4 deletions

View File

@ -1,4 +1,4 @@
name: Build + Publish Release
name: Build next branch
on:
push:
@ -22,4 +22,5 @@ jobs:
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Pack
run: dotnet pack -c Release --no-build --include-source /p:VersionSuffix=next
run: dotnet pack -c Release --no-build --include-source -o ./tmp --version-suffix ${{ GITHUB_SHA }}
# TODO publish to myget feed

View File

@ -1,4 +1,4 @@
name: Build + Publish Release
name: Build release branch
on:
push:
@ -22,4 +22,6 @@ jobs:
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Pack
run: dotnet pack -c Release --no-build --include-source
run: dotnet pack -c Release --no-build --include-source -o ./tmp
- name: Publish
run: dotnet nuget push ./temp/Inflatable.Lastfm*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicates

View File

@ -11,6 +11,8 @@
<PackageProjectUrl>https://github.com/inflatablefriends/lastfm</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageTags>lastfm last.fm inflatable friends sdk api music metadata scrobble scrobbling portable netstandard</PackageTags>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<PropertyGroup>