-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.24 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
name: Publish
on:
push:
tags:
- 'v*.*.*'
jobs:
release:
name: Release
strategy:
matrix:
kind: ['linux', 'windows']
include:
- kind: linux
os: ubuntu-latest
target: linux-x64
- kind: windows
os: windows-latest
target: win-x64
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9.x
- name: Get version number
id: version
shell: bash
run: |
version=`echo "${{ github.ref_name }}" | cut -c 2-`
echo "Setting version to '$version'"
echo "VERSION=$version" >> $GITHUB_OUTPUT
- name: Build
run: >
dotnet run
--project ./src/TransactionQL.Build/TransactionQL.Build.fsproj
-e parallel-jobs=4
-e VERSION=${{ steps.version.outputs.VERSION }}
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: "./ci/dist/*"
prerelease: ${{ contains(github.ref_name, '-') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}