-
Notifications
You must be signed in to change notification settings - Fork 4
28 lines (27 loc) · 885 Bytes
/
ci.yml
File metadata and controls
28 lines (27 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
on: push
name: CI
jobs:
build:
uses: BattletechModders/ModTek/.github/workflows/mod-builder.yml@master
with:
checkout-directory: 'BATTLETECH/Mods/CustomComponents'
build-script: |
(
cd source
cp -a Directory.Build.props.template Directory.Build.props
sed -i "s|<BattleTechGameDir>.*</BattleTechGameDir>|<BattleTechGameDir>$BATTLETECH_DIR</BattleTechGameDir>|" Directory.Build.props
dotnet build -c Release
dotnet test
)
(
cd ..
7z a -tzip -mx9 "$DIST_DIR/CustomComponents.zip" \
CustomComponents/ \
ModTek/Injectors/*.CustomComponents.xml \
-xr!CCTestMod \
-xr!source "-xr!.*"
)
release-notes: |
Requires ModTek to be up-to-date.
CustomComponents.zip contains the mod.
secrets: inherit