ci: try to fix CI
This commit is contained in:
parent
0e4aa1caa5
commit
d3e63ccfcf
@ -8,9 +8,9 @@ clone:
|
||||
|
||||
pipeline:
|
||||
fetch-deps:
|
||||
image: alpine/git:latest
|
||||
image: jackbondpreston/msvb-build-env
|
||||
commands:
|
||||
- git clone https://github.com/blushiemagic/MagicStorage.git
|
||||
- steamcmd "+login anonymous" "+workshop_download_item 1281930 2563309347" "+quit"
|
||||
- wget https://github.com/tModLoader/tModLoader/releases/latest/download/tModLoader.zip
|
||||
- unzip -q tModLoader.zip -d tModLoader
|
||||
- rm tModLoader.zip
|
||||
@ -19,18 +19,26 @@ pipeline:
|
||||
echo "<Project ToolsVersion=\"14.0\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">
|
||||
<Import Project=\"$CI_WORKSPACE/tModLoader/tMLMod.targets\" />
|
||||
</Project>" > tModLoader.targets
|
||||
- |
|
||||
wget https://github.com/steviegt6/tml-patcher/releases/latest/download/TML.Patcher.zip
|
||||
unzip -q TML.Patcher.zip -d TMLPatcher
|
||||
- |
|
||||
rm -f /root/.steam/steamapps/workshop/content/1281930/2563309347/workshop.json
|
||||
VER=$(ls /root/.steam/steamapps/workshop/content/1281930/2563309347 | cut -c 6- | sort | head -n 1)
|
||||
YEAR=$(ls /root/.steam/steamapps/workshop/content/1281930/2563309347 | cut -c -4 | sort | head -n 1)
|
||||
cp /root/.steam/steamapps/workshop/content/1281930/2563309347/$YEAR.$VER/MagicStorage.tmod ./
|
||||
- dotnet TMLPatcher/TML.Patcher.dll extract MagicStorage.tmod
|
||||
- cp MagicStorage/MagicStorage.dll $CI_WORKSPACE/
|
||||
when:
|
||||
event: tag
|
||||
|
||||
build:
|
||||
image: jackbondpreston/fna-alpine
|
||||
image: jackbondpreston/msvb-build-env
|
||||
commands:
|
||||
- |
|
||||
echo "Shell: $SHELL"
|
||||
echo "CI_WORKSPACE: $CI_WORKSPACE"
|
||||
- cat tModLoader.targets
|
||||
- cd MagicStorage && dotnet build -c Release || true
|
||||
- cp bin/Release/net6.0/MagicStorage.dll .
|
||||
- cd $CI_WORKSPACE
|
||||
- cd MagicStorageVoidBag
|
||||
- rm -rf .git
|
||||
|
Loading…
Reference in New Issue
Block a user