mirror of
https://github.com/tribes2/SkillSector.git
synced 2026-01-19 19:44:48 +00:00
add automation for tasks I'm already forgetting about, add version
This commit is contained in:
parent
331a364053
commit
e7e71ef4c1
13
.github/workflows/skillsector.yml
vendored
13
.github/workflows/skillsector.yml
vendored
|
|
@ -14,11 +14,14 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout repository code
|
||||
uses: actions/checkout@v4
|
||||
# - name: Update DMP2::Version script to match GitHub tag
|
||||
# run: |
|
||||
# VERSION_FILE='scripts/autoexec/dmp2VersionCheck.cs'
|
||||
# NEW_VERSION="\"${{ github.ref_name }}\""
|
||||
# sed -i "s/\(\$DMP2::Version = \)[^;]*;/\1${NEW_VERSION};/" "$VERSION_FILE"
|
||||
- name: Disable development mode when creating a release
|
||||
run: |
|
||||
sed -i "s/DEVMODE.*=.*1;/DEVMODE = 0" scripts/SkillSectorGame.cs
|
||||
- name: Update SkillSector version to match GitHub tag
|
||||
run: |
|
||||
VERSION_FILE='scripts/SkillSectorGame.cs'
|
||||
NEW_VERSION="\"${{ github.ref_name }}\""
|
||||
sed -i "s/\(\$SkillSector::Version = \)[^;]*;/\1${NEW_VERSION};/" "$VERSION_FILE"
|
||||
- name: Build and release a vl2 using the vl2-builder action
|
||||
id: 'release'
|
||||
uses: tribes2/vl2-builder@v2.0
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
// Allows you to modify AimTrain placeholder entities.
|
||||
// Leave it on when editing the map, leave it off when playing the game.
|
||||
$DEVMODE = 1;
|
||||
$SkillSector::Version = "DEV";
|
||||
|
||||
// Load the various modes, datablocks and functions.
|
||||
exec("scripts/SkillSectorTeleporter.cs");
|
||||
|
|
|
|||
Loading…
Reference in a new issue