76 lines (74 loc) · 1.94 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Publish
on:
push:
branches:
- master
paths:
- RELEASE_NOTES.md
- .github/workflows/publish.yml
jobs:
fable:
name: Fable
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.100'
- name: Restore Tools
run: dotnet tool restore
- name: Paket Restore
run: dotnet paket restore
- name: Build
run: dotnet fable src/Demo/Fable --outDir bin/Fable
dotnet:
name: DotNet
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.100'
- name: Restore Tools
run: dotnet tool restore
- name: Paket Restore
run: dotnet paket restore
- name: Build
run: dotnet build
- name: Test
run: dotnet test -l "console;verbosity=normal" --no-build --nologo
publish:
name: "Publish"
needs:
- fable
- dotnet
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.100'
- name: Restore Tools
run: dotnet tool restore
- name: Paket Restore
run: dotnet paket restore
- name: Pack
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: dotnet aardpack FSharp.Data.Adaptive.sln --notag
- name: Upload Package
uses: actions/upload-artifact@v2
with:
name: packages
path: bin\pack
- name: NuGet
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
shell: cmd
run: dotnet nuget push "bin\pack\*.nupkg" -k %NUGET_KEY% -s "https://api.nuget.org/v3/index.json" --skip-duplicate