Skip to content

ci(workflow): add path filters to build workflow (#28) #45

ci(workflow): add path filters to build workflow (#28)

ci(workflow): add path filters to build workflow (#28) #45

Workflow file for this run

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