-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 761 Bytes
/
Copy pathbuild.yml
File metadata and controls
36 lines (28 loc) · 761 Bytes
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
name: Build
on:
push:
branches:
- master
- main
pull_request:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Restore
run: dotnet restore ColorSampler.slnx
- name: Build
run: dotnet build ColorSampler.slnx -c Release --no-restore
- name: Pack
run: dotnet pack src/ColorSampler/ColorSampler.csproj -c Release --no-build -o artifacts/packages
- name: Upload package artifacts
uses: actions/upload-artifact@v4
with:
name: colorsampler-packages
path: artifacts/packages/*