forked from BitcoderCZ/ProjectEarthApi
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (32 loc) · 824 Bytes
/
build.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
name: Build
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
TAG:
- linux-x64
- linux-arm
- win-x64
- win-x86
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
- name: Restore NuGet Packages
run: dotnet restore
- name: Build
run: dotnet publish -r ${{ matrix.TAG }} -p:PublishSingleFile=true -c Release --no-restore
- name: Upload Build Result
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.TAG }}-build
path: ./ProjectEarthServerAPI/bin/Release/net8.0/${{ matrix.TAG }}/publish