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:
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user