-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.4 KB
/
publish.yml
File metadata and controls
51 lines (42 loc) · 1.4 KB
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
44
45
46
47
48
49
50
51
name: .NET Core
on:
push:
branches: [ main ]
env:
# Stop wasting time caching packages
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending usage data to Microsoft
DOTNET_CLI_TELEMETRY_OPTOUT: true
# Official NuGet Feed settings
NUGET_FEED: https://api.nuget.org/v3/index.json
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # avoid shallow clone so NerdBank.GitVersioning can do its work
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 5.0
- name: Restore
run: dotnet restore ./src
- name: Build
run: dotnet build ./src -c Release --no-restore
- name: Pack
run: dotnet pack -v minimal -c Release --no-restore --include-symbols --include-source -o nupkg ./src/FFT.Subscriptions/FFT.Subscriptions.csproj
- name: Push to NuGet Feed
run: dotnet nuget push ./nupkg/*.nupkg --source $NUGET_FEED --skip-duplicate --api-key $NUGET_API_KEY
# - name: Build documentation
# uses: nikeee/docfx-action@v1.0.0
# with:
# args: docfx/docfx.json
#
# - name: Publish documentation on github pages
# uses: maxheld83/ghpages@master
# env:
# BUILD_DIR: docfx/_site
# GH_PAT: ${{ secrets.GH_PAT }}