Update GitVersion actions and modify paths
This commit is contained in:
11
.github/workflows/push_main.yml
vendored
11
.github/workflows/push_main.yml
vendored
@@ -4,8 +4,8 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
paths:
|
||||
- "TimetableDesigner.Backend.Events**"
|
||||
#paths:
|
||||
#- "TimetableDesigner.Backend.Events**"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -21,14 +21,13 @@ jobs:
|
||||
- name: Build
|
||||
run: dotnet build
|
||||
- name: Setup GitVersion
|
||||
uses: gittools/actions/gitversion/setup@v0.9.7
|
||||
uses: gittools/actions/gitversion/setup@v4.2.0
|
||||
with:
|
||||
versionSpec: 5.x
|
||||
versionSpec: 6.4.x
|
||||
- name: Determine version
|
||||
uses: gittools/actions/gitversion/execute@v0.9.7
|
||||
uses: gittools/actions/gitversion/execute@v4.2.0
|
||||
id: gitversion
|
||||
with:
|
||||
useConfigFile: true
|
||||
configFilePath: ./.github/config/gitversion.yml
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user