-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (52 loc) · 1.47 KB
/
release.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Release
on:
push:
tags:
- '*'
jobs:
build:
strategy:
matrix:
os: [windows-latest, macOS-latest]
include:
- os: windows-latest
publish-target: publish.win
dist-target: dist.win
- os: macOS-latest
publish-target: publish.osx
dist-target: dist.osx
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: nuget-${{ hashFiles('**/packages.lock.json', 'build.fsx.lock') }}
restore-keys: nuget-
- name: Restore tool
run: dotnet tool restore
- name: Restore fake
run: dotnet fake build -t Nothing
- name: Get Resources package
run: dotnet fake build -t resources.ci
env:
RESOURCES_DOWNLOAD_URL: ${{ secrets.RESOURCES_DOWNLOAD_URL }}
- name: Build for Publish
run: dotnet fake build -t ${{ matrix.publish-target }}
- name: Generate LICENSES
run: dotnet fake build -t licenses
- name: Dist
run: dotnet fake build -t ${{ matrix.dist-target }}
- name: Release
uses: softprops/action-gh-release@v1
with:
files: publish/output/*
prerelease: ${{ contains(github.ref, 'beta') }}
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}