Skip to content

Commit 2fd75c0

Browse files
committed
[CX-2239] Publish first version
0 parents  commit 2fd75c0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1895
-0
lines changed

.github/workflows/release.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Create release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*"
7+
- "v*.*.*"
8+
9+
jobs:
10+
release:
11+
name: 'Verify and publish new version'
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Check out newly tagged version of source code
17+
uses: actions/checkout@v3
18+
19+
- name: Setup .NET Core SDK
20+
uses: actions/setup-dotnet@v2
21+
with:
22+
dotnet-version: '6.0'
23+
24+
- name: Restore dependencies
25+
run: dotnet restore
26+
27+
- name: Run test suite
28+
run: dotnet test --no-restore --verbosity normal
29+
30+
- name: Publish runtime-specific binaries
31+
run: |
32+
RUNTIMES=(
33+
'linux-arm64'
34+
'linux-musl-x64'
35+
'linux-x64'
36+
'osx-x64'
37+
'win-x64'
38+
)
39+
APP_VERSION=${GITHUB_REF#refs/tags/v}
40+
mkdir -p ./.app/runtimes
41+
mkdir -p ./.app/release
42+
for runtime in "${RUNTIMES[@]}"
43+
do
44+
dotnet publish \
45+
--configuration Release \
46+
--runtime "$runtime" \
47+
--self-contained true \
48+
--output "./.app/runtimes/$runtime" \
49+
-p:Version="$APP_VERSION"
50+
51+
mv "./.app/runtimes/$runtime/slt" "./.app/release/slt-$runtime" || true
52+
mv "./.app/runtimes/$runtime/slt.exe" "./.app/release/slt-$runtime.exe" || true
53+
done
54+
55+
- name: Create new release on GitHub
56+
uses: softprops/action-gh-release@v1
57+
with:
58+
body: |
59+
Hopefully a bit more than just bug fixes and performance improvements.
60+
files: |
61+
./.app/release/*

0 commit comments

Comments
 (0)