mirror of
https://github.com/MSWS/TTT.git
synced 2025-12-05 22:20:25 -08:00
Add GitVersion config, include gamedata in releases
This commit is contained in:
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@@ -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
42
GitVersion.yml
Normal 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}
|
||||
Reference in New Issue
Block a user