mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-16 23:13:07 +01:00
28 lines
748 B
YAML
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
|