forked from Turnerj/Borderless1942
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.02 KB
/
build.yml
File metadata and controls
41 lines (36 loc) · 1.02 KB
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
name: Build
on:
push:
branches: [ main ]
pull_request:
release:
types: [ published ]
env:
# Disable the .NET logo in the console output.
DOTNET_NOLOGO: true
# Disable the .NET first time experience to skip caching NuGet packages and speed up the build.
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending .NET CLI telemetry to Microsoft.
DOTNET_CLI_TELEMETRY_OPTOUT: true
BUILD_ARTIFACT_PATH: ${{github.workspace}}/build-artifacts
jobs:
build:
name: Build ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup dotnet 10.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 10.0.x
- name: Build
run: dotnet publish -c Release --output ${{env.BUILD_ARTIFACT_PATH}} -r win-x64
- name: Publish artifacts
uses: actions/upload-artifact@v4
with:
name: Borderless1942-Executable
path: ${{env.BUILD_ARTIFACT_PATH}}