-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 856 Bytes
/
build.yml
File metadata and controls
39 lines (32 loc) · 856 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
37
38
39
name: Build
on:
push:
branches: [ main, develop ]
paths:
- 'src/**'
- '.github/workflows/build.yml'
pull_request:
branches: [ main ]
paths:
- 'src/**'
- '.github/workflows/build.yml'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore src/CodingWithCalvin.Otel4Vsix.slnx
- name: Build
run: dotnet build src/CodingWithCalvin.Otel4Vsix.slnx --configuration Release --no-restore
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-output
path: src/CodingWithCalvin.Otel4Vsix/bin/Release/net48
retention-days: 7