-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 1 KB
/
publish.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
31
name: publish to nuget
on:
push:
branches:
- master
jobs:
publish:
name: build, pack & publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pack
run: dotnet pack ClockworkFramework.Core\\ClockworkFramework.Core.csproj -c Release -o .
- name: Publish
run: dotnet nuget push *.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source "https://api.nuget.org/v3/index.json" --skip-duplicate
# - name: Setup dotnet
# uses: actions/setup-dotnet@v1
# with:
# dotnet-version: 3.1.200
# Publish
# https://github.com/brandedoutcast/publish-nuget
# - name: publish on version change
# id: publish_nuget
# uses: alirezanet/publish-nuget@v3
# with:
# PROJECT_FILE_PATH: ClockworkFramework.Core/ClockworkFramework.Core.csproj
# BUILD_CONFIGURATION: Release
# VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
# NUGET_KEY: ${{secrets.NUGET_API_KEY}}