ci: try to fix CI
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Jack Bond-Preston 2022-12-03 14:59:08 +00:00
parent 0e4aa1caa5
commit 405c30f718
Signed by: jack
GPG Key ID: 010071F1482BA852

View File

@ -8,9 +8,9 @@ clone:
pipeline: pipeline:
fetch-deps: fetch-deps:
image: alpine/git:latest image: jackbondpreston/msvb-build-env
commands: 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 - wget https://github.com/tModLoader/tModLoader/releases/latest/download/tModLoader.zip
- unzip -q tModLoader.zip -d tModLoader - unzip -q tModLoader.zip -d tModLoader
- rm tModLoader.zip - rm tModLoader.zip
@ -19,18 +19,26 @@ pipeline:
echo "<Project ToolsVersion=\"14.0\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\"> echo "<Project ToolsVersion=\"14.0\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">
<Import Project=\"$CI_WORKSPACE/tModLoader/tMLMod.targets\" /> <Import Project=\"$CI_WORKSPACE/tModLoader/tMLMod.targets\" />
</Project>" > tModLoader.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: when:
event: tag event: tag
build: build:
image: jackbondpreston/fna-alpine image: jackbondpreston/msvb-build-env
commands: commands:
- | - |
echo "Shell: $SHELL" echo "Shell: $SHELL"
echo "CI_WORKSPACE: $CI_WORKSPACE" echo "CI_WORKSPACE: $CI_WORKSPACE"
- cat tModLoader.targets - cat tModLoader.targets
- cd MagicStorage && dotnet build -c Release || true
- cp bin/Release/net6.0/MagicStorage.dll .
- cd $CI_WORKSPACE - cd $CI_WORKSPACE
- cd MagicStorageVoidBag - cd MagicStorageVoidBag
- rm -rf .git - rm -rf .git