.net 8 update #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push NuGet packages | |
on: | |
push: | |
branches: | |
- master # Default release branch | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build with dotnet | |
run: dotnet build SiaSkynet/SiaSkynet.csproj --configuration Release | |
- name: Package NuGet | |
run: dotnet pack SiaSkynet/SiaSkynet.csproj -c Release -o out -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg | |
- name: Publish packages to nuget.org | |
run: dotnet nuget push ./out/**/*.* -s https://api.nuget.org/v3/index.json -k ${NUGET_TOKEN} --skip-duplicate | |
env: | |
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }} |