-
Notifications
You must be signed in to change notification settings - Fork 5
30 lines (30 loc) · 1.2 KB
/
dotnetcore.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
#name: Build-Pack-Publish
#on:
## watch:
## types: [started]
# push:
# branches:
# - master
#jobs:
# build:
# runs-on: ubuntu-latest
## if: github.event == 'watch' && github.actor == github.event.repository.owner.login #only me
# steps:
# - uses: actions/checkout@v2
# - name: Setup .NET Core
# uses: actions/setup-dotnet@v1
## with:
## dotnet-version: 3.1.101
# - name: Run Unit Test
# run: dotnet test /home/runner/work/OsmApiClient/OsmApiClient/OsmSharp.IO.API.Tests/OsmSharp.IO.API.Tests.csproj
# - name: Build Solution
# run: dotnet build --configuration Release
# - name: Nuget Publish
# if: success()
# run: dotnet nuget push --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NugetApiKey}} /home/runner/work/OsmApiClient/OsmApiClient/src/bin/Release/*.nupkg
# - name: Nuget Publish Symbols
# if: success()
# run: dotnet nuget push --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NugetApiKey}} /home/runner/work/OsmApiClient/OsmApiClient/src/bin/Release/*.snupkg --skip-duplicate
#
#