forked from i2van/LPRun
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (32 loc) · 918 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
38
39
40
41
42
43
44
45
name: build
on: [push, pull_request]
env:
SLN: LPRun.sln
SLN_CONFIG: Release
BIN_POSTFIX: .Bin
RETENTION_DAYS: 1
jobs:
build:
runs-on: windows-latest
steps:
# Set up
- name: Setup .NET
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: |
8.0.x
# Check out
- name: Check out ${{env.SLN}}
uses: actions/checkout@v4.1.1
# LPRun
- name: Restore ${{env.SLN}}
run: dotnet restore ${{env.SLN}}
- name: Build ${{env.SLN}} ${{env.SLN_CONFIG}}
run: dotnet build ${{env.SLN}} --configuration ${{env.SLN_CONFIG}} --no-restore -p:GITHUB_ACTIONS=true
# Upload artifacts
- name: Publish LPRun ${{env.SLN_CONFIG}}
uses: actions/upload-artifact@v4.3.0
with:
name: LPRun${{env.BIN_POSTFIX}}
path: bin/${{env.SLN_CONFIG}}/LPRun.*.*nupkg
retention-days: ${{env.RETENTION_DAYS}}