-
-
Notifications
You must be signed in to change notification settings - Fork 69
39 lines (36 loc) · 1.15 KB
/
dotnet.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
name: Build
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
- name: Publish (Linux x64)
run: dotnet publish --runtime linux-x64 -c Release
- name: Publish (Linux arm64)
run: dotnet publish --runtime linux-arm64 -c Release
- name: Publish (Windows x64)
run: dotnet publish --runtime win-x64 -c Release
- name: Package (Linux x64)
run: cd out-linux-x64 && tar -czf assetto-server-linux-x64.tar.gz * && cd ..
- name: Package (Linux arm64)
run: cd out-linux-arm64 && tar -czf assetto-server-linux-arm64.tar.gz * && cd ..
- name: Package (Windows x64)
run: cd out-win-x64 && zip -r assetto-server-win-x64.zip * && cd ..
- name: Release
uses: softprops/action-gh-release@v1
with:
prerelease: true
files: |
out-linux-x64/assetto-server-linux-x64.tar.gz
out-linux-arm64/assetto-server-linux-arm64.tar.gz
out-win-x64/assetto-server-win-x64.zip