IF.Lastfm/.github/workflows/release.yml
2020-06-26 17:37:00 +01:00

28 lines
748 B
YAML

name: Build release branch
on:
push:
branches: [ release ]
paths-ignore:
- 'doc/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Pack
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