Update GitVersion actions and modify paths

This commit is contained in:
2026-01-15 21:27:46 +01:00
committed by GitHub
Unverified
parent 7311adfb21
commit 8fca4faf8a

View File

@@ -4,8 +4,8 @@ on:
push: push:
branches: branches:
- "main" - "main"
paths: #paths:
- "TimetableDesigner.Backend.Events**" #- "TimetableDesigner.Backend.Events**"
jobs: jobs:
build: build:
@@ -21,14 +21,13 @@ jobs:
- name: Build - name: Build
run: dotnet build run: dotnet build
- name: Setup GitVersion - name: Setup GitVersion
uses: gittools/actions/gitversion/setup@v0.9.7 uses: gittools/actions/gitversion/setup@v4.2.0
with: with:
versionSpec: 5.x versionSpec: 6.4.x
- name: Determine version - name: Determine version
uses: gittools/actions/gitversion/execute@v0.9.7 uses: gittools/actions/gitversion/execute@v4.2.0
id: gitversion id: gitversion
with: with:
useConfigFile: true
configFilePath: ./.github/config/gitversion.yml configFilePath: ./.github/config/gitversion.yml
- name: Create NuGet package - name: Create NuGet package
run: dotnet pack -c Release -p:Version=${{steps.gitversion.outputs.SemVer}} -p:PackageVersion=${{steps.gitversion.outputs.SemVer}} --output ${{ github.workspace}}/nuget run: dotnet pack -c Release -p:Version=${{steps.gitversion.outputs.SemVer}} -p:PackageVersion=${{steps.gitversion.outputs.SemVer}} --output ${{ github.workspace}}/nuget