ci: only run on tags

This commit is contained in:
Jack Bond-Preston 2022-07-07 22:41:05 +01:00
parent 68033424ec
commit 02be4b41cc
Signed by: jack
GPG Key ID: 010071F1482BA852

View File

@ -3,6 +3,8 @@ clone:
image: woodpeckerci/plugin-git:latest image: woodpeckerci/plugin-git:latest
settings: settings:
path: MagicStorageVoidBag path: MagicStorageVoidBag
when:
event: tag
pipeline: pipeline:
fetch-deps: fetch-deps:
@ -17,6 +19,8 @@ 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
when:
event: tag
build: build:
image: jackbondpreston/fna-alpine image: jackbondpreston/fna-alpine
@ -35,6 +39,8 @@ 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
when:
event: tag
gitea-release: gitea-release:
image: plugins/gitea-release image: plugins/gitea-release