ci: use new woodpecker YAML schema
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed
This commit is contained in:
@ -1,13 +1,8 @@
|
|||||||
clone:
|
when:
|
||||||
git:
|
- event: [push, tag, manual]
|
||||||
image: woodpeckerci/plugin-git:latest
|
|
||||||
settings:
|
|
||||||
path: MagicStorageVoidBag
|
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
|
|
||||||
pipeline:
|
steps:
|
||||||
fetch-deps:
|
- name: fetch-deps
|
||||||
image: jackbondpreston/msvb-build-env
|
image: jackbondpreston/msvb-build-env
|
||||||
commands:
|
commands:
|
||||||
- steamcmd "+login anonymous" "+workshop_download_item 1281930 2563309347" "+quit"
|
- steamcmd "+login anonymous" "+workshop_download_item 1281930 2563309347" "+quit"
|
||||||
@ -20,27 +15,26 @@ pipeline:
|
|||||||
<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
|
wget https://github.com/steviegt6/fnb/archive/refs/tags/0.1.0.zip
|
||||||
unzip -q TML.Patcher.zip -d TMLPatcher
|
unzip -q 0.1.0.zip -d TMLPatcher
|
||||||
|
dotnet build --configuration=Release TMLPatcher/fnb-0.1.0/src/
|
||||||
- |
|
- |
|
||||||
rm -f /root/.steam/SteamApps/workshop/content/1281930/2563309347/workshop.json
|
sudo rm -f /root/.steam/SteamApps/workshop/content/1281930/2563309347/workshop.json
|
||||||
YEAR=$(ls /root/.steam/SteamApps/workshop/content/1281930/2563309347 | cut -c -4 | sort -nr | head -n 1)
|
YEAR=$(ls /root/.steam/SteamApps/workshop/content/1281930/2563309347 | cut -c -4 | sort -nr | head -n 1)
|
||||||
VER=$(find /root/.steam/SteamApps/workshop/content/1281930/2563309347/ -type d -name "$YEAR.*" -printf "%f\n" | cut -c 6- | sort -nr | head -n 1)
|
VER=$(find /root/.steam/SteamApps/workshop/content/1281930/2563309347/ -type d -name "$YEAR.*" -printf "%f\n" | cut -c 6- | sort -nr | head -n 1)
|
||||||
cp /root/.steam/SteamApps/workshop/content/1281930/2563309347/$YEAR.$VER/MagicStorage.tmod ./
|
cp /root/.steam/SteamApps/workshop/content/1281930/2563309347/$YEAR.$VER/MagicStorage.tmod ./
|
||||||
- dotnet TMLPatcher/TML.Patcher.dll extract MagicStorage.tmod
|
- dotnet TMLPatcher/fnb-0.1.0/src/Tomat.FNB/bin/Release/net8.0/fnb.dll tmod extract MagicStorage.tmod
|
||||||
- cp MagicStorage/MagicStorage.dll $CI_WORKSPACE/
|
- cp MagicStorage/MagicStorage.dll $CI_WORKSPACE/
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
|
|
||||||
build:
|
- name: build
|
||||||
image: jackbondpreston/msvb-build-env
|
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
|
||||||
|
- cp tModLoader.targets $CI_WORKSPACE/../
|
||||||
- cd $CI_WORKSPACE
|
- cd $CI_WORKSPACE
|
||||||
- cd MagicStorageVoidBag
|
|
||||||
- rm -rf .git
|
- rm -rf .git
|
||||||
- dotnet build -c Release || true
|
- dotnet build -c Release || true
|
||||||
- cp bin/Release/net6.0/MagicStorageVoidBag.dll .
|
- cp bin/Release/net6.0/MagicStorageVoidBag.dll .
|
||||||
@ -49,16 +43,13 @@ pipeline:
|
|||||||
- cp ~/.local/share/Terraria/tModLoader/Mods/MagicStorageVoidBag.tmod release/
|
- cp ~/.local/share/Terraria/tModLoader/Mods/MagicStorageVoidBag.tmod release/
|
||||||
- cp MagicStorageVoidBag/MagicStorageVoidBag.dll release/
|
- cp MagicStorageVoidBag/MagicStorageVoidBag.dll release/
|
||||||
- ls release
|
- ls release
|
||||||
|
|
||||||
|
- name: gitea-release
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
gitea-release:
|
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: gitea-api-key
|
from_secret: gitea-api-key
|
||||||
base_url: https://git.jackbondpreston.me
|
base_url: https://git.jackbondpreston.me
|
||||||
files: release/*
|
files: release/*
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
|
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyName>MagicStorageVoidBag</AssemblyName>
|
<AssemblyName>MagicStorageVoidBag</AssemblyName>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
Reference in New Issue
Block a user