MapTo/.github/workflows/publish-packages.yml

38 lines
1011 B
YAML
Raw Normal View History

2020-12-23 12:21:15 +03:00
name: Publish Packages
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2020-12-24 09:56:54 +03:00
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- uses: dotnet/nbgv@v0.4.0
2020-12-23 12:21:15 +03:00
with:
setAllVars: true
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.101
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore /p:PublicRelease=true
- name: Test
2020-12-24 10:38:03 +03:00
run: dotnet test --configuration Release --no-build --verbosity normal
2020-12-23 12:21:15 +03:00
- name: Publish MapTo
uses: brandedoutcast/publish-nuget@v2.5.5
with:
PROJECT_FILE_PATH: src/MapTo/MapTo.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
NUGET_SOURCE: https://api.nuget.org
TAG_COMMIT: false
INCLUDE_SYMBOLS: true
2020-12-24 10:38:03 +03:00
VERSION_STATIC: ${{env.NBGV_SemVer1}}