MagicStorageVoidBag/.woodpecker.yml

70 lines
2.0 KiB
YAML
Raw Normal View History

2022-07-07 15:15:05 +01:00
clone:
git:
image: woodpeckerci/plugin-git:latest
2022-07-07 14:34:42 +01:00
settings:
2022-07-07 15:15:05 +01:00
path: MagicStorageVoidBag
2022-07-07 22:41:05 +01:00
when:
event: tag
2022-07-07 14:34:42 +01:00
2022-07-07 15:15:05 +01:00
pipeline:
2022-07-07 17:17:43 +01:00
fetch-deps:
image: alpine/git:latest
commands:
- git clone https://github.com/blushiemagic/MagicStorage.git
- wget https://github.com/tModLoader/tModLoader/releases/latest/download/tModLoader.zip
2022-07-07 17:55:45 +01:00
- unzip -q tModLoader.zip -d tModLoader
2022-07-07 17:17:43 +01:00
- rm tModLoader.zip
2022-07-07 17:55:45 +01:00
- ln -sf $CI_WORKSPACE/tModLoader/Libraries/Native/Linux/libSDL2-2.0.so.0 $CI_WORKSPACE/tModLoader/Libraries/Native/Linux/libSDL2.so
- >
echo "<Project ToolsVersion=\"14.0\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">
<Import Project=\"$CI_WORKSPACE/tModLoader/tMLMod.targets\" />
</Project>" > tModLoader.targets
2022-07-07 22:41:05 +01:00
when:
event: tag
2022-07-07 17:55:45 +01:00
2022-07-07 13:44:56 +01:00
build:
2022-07-07 17:55:45 +01:00
image: jackbondpreston/fna-alpine
2022-07-07 13:44:56 +01:00
commands:
2022-07-07 17:55:45 +01:00
- |
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
2022-07-07 22:55:07 +01:00
- cd MagicStorageVoidBag
- rm -rf .git
- dotnet build -c Release || true
2022-07-07 17:55:45 +01:00
- cp bin/Release/net6.0/MagicStorageVoidBag.dll .
- cd $CI_WORKSPACE
2022-07-07 22:35:31 +01:00
- mkdir release
- cp ~/.local/share/Terraria/tModLoader/Mods/MagicStorageVoidBag.tmod release/
- cp MagicStorageVoidBag/MagicStorageVoidBag.dll release/
- ls release
2022-07-07 22:41:05 +01:00
when:
event: tag
2022-07-07 22:35:31 +01:00
gitea-release:
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea-api-key
base_url: https://git.jackbondpreston.me
files: release/*
when:
event: tag
2022-07-07 23:07:44 +01:00
github-release:
image: plugins/github-release
settings:
api_key:
from_secret: github-api-key
base_url: https://github.com/api/v3/
upload_url: https://github.com/api/uploads
files: release/*
environment:
- DRONE_REPO_OWNER=jackbondpreston
- CI_REPO_OWNER=jackbondpreston
when:
event: tag