Add GitVersion config, include gamedata in releases

This commit is contained in:
MSWS
2025-09-25 22:09:43 -07:00
parent db8fe8f069
commit 21b869507b
2 changed files with 48 additions and 1 deletions

View File

@@ -34,6 +34,11 @@ jobs:
dotnet build Locale/Locale.csproj --no-restore -c Release
cp lang/*.json build/TTT/lang
- name: Copy Gamedata
run: |
mkdir -p build/TTT/gamedata
cp -r TTT/CS2/gamedata/* build/TTT/gamedata
- name: Publish Plugin
run: |
dotnet restore TTT/Plugin/Plugin.csproj
@@ -43,7 +48,7 @@ jobs:
run: |
cd build/TTT
zip -r TTT-${{ steps.gitversion.outputs.fullSemVer }}.zip *
# 2. Get latest tag
- name: Get latest tag
id: latest_tag

42
GitVersion.yml Normal file
View File

@@ -0,0 +1,42 @@
mode: ContinuousDeployment
tag-prefix: ""
commit-message-incrementing: Enabled
assembly-versioning-scheme: MajorMinorPatch
# Prevent any automatic major bumps from commits
major-version-bump-message: "(?!)" # never matches
# Only bump when you explicitly ask for it
minor-version-bump-message: "\+semver:\s?(feature|minor)"
patch-version-bump-message: "\+semver:\s?(fix|patch)"
# Default increments are disabled so version stays on the tagged major unless you opt in
branches:
main:
label: "" # yields 2.0.0-1, 2.0.0-2, ...
increment: None # ignore default increments on main
prevent-increment-of-merged-branch-version: true
develop:
label: "dev"
increment: None
prevent-increment-of-merged-branch-version: true
feature:
label: "feat"
increment: None
prevent-increment-of-merged-branch-version: true
release:
label: "rc"
increment: None
prevent-increment-of-merged-branch-version: true
hotfix:
label: "hotfix"
increment: None
prevent-increment-of-merged-branch-version: true
pull-request:
label: "pr"
increment: None
prevent-increment-of-merged-branch-version: true
# Optional formatting for informational version strings
assembly-informational-format: >
{FullSemVer}+Branch.{BranchName}.Sha.{ShortSha}