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:
|
steps:
|
||||||
- name: Checkout repository code
|
- name: Checkout repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
# - name: Update DMP2::Version script to match GitHub tag
|
- name: Disable development mode when creating a release
|
||||||
# run: |
|
run: |
|
||||||
# VERSION_FILE='scripts/autoexec/dmp2VersionCheck.cs'
|
sed -i "s/DEVMODE.*=.*1;/DEVMODE = 0" scripts/SkillSectorGame.cs
|
||||||
# NEW_VERSION="\"${{ github.ref_name }}\""
|
- name: Update SkillSector version to match GitHub tag
|
||||||
# sed -i "s/\(\$DMP2::Version = \)[^;]*;/\1${NEW_VERSION};/" "$VERSION_FILE"
|
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
|
- name: Build and release a vl2 using the vl2-builder action
|
||||||
id: 'release'
|
id: 'release'
|
||||||
uses: tribes2/vl2-builder@v2.0
|
uses: tribes2/vl2-builder@v2.0
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
// Allows you to modify AimTrain placeholder entities.
|
// Allows you to modify AimTrain placeholder entities.
|
||||||
// Leave it on when editing the map, leave it off when playing the game.
|
// Leave it on when editing the map, leave it off when playing the game.
|
||||||
$DEVMODE = 1;
|
$DEVMODE = 1;
|
||||||
|
$SkillSector::Version = "DEV";
|
||||||
|
|
||||||
// Load the various modes, datablocks and functions.
|
// Load the various modes, datablocks and functions.
|
||||||
exec("scripts/SkillSectorTeleporter.cs");
|
exec("scripts/SkillSectorTeleporter.cs");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue