forked from SaturnFramework/Saturn.Template
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 914 Bytes
/
push.yaml
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
32
33
34
35
36
37
38
39
40
41
42
43
name: Publish
on:
push:
tags:
- 'v*' # Publish on any new tag starting with v
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
dotnet: [6.0.200]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Restore tools
run: dotnet tool restore
- name: Publish to NuGet
run: dotnet run --project build/Build.fsproj -- Push
env:
nuget-key: ${{ secrets.NUGET_KEY }}
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
path: build
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: build/out/*.nupkg
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true