From 23c0dcaf6e88e3d36bb522d991b02a634ef869a2 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sat, 5 Feb 2022 22:37:46 -0600 Subject: [PATCH] Add release workflow --- .woodpecker/release.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .woodpecker/release.yml diff --git a/.woodpecker/release.yml b/.woodpecker/release.yml new file mode 100644 index 0000000..2241c87 --- /dev/null +++ b/.woodpecker/release.yml @@ -0,0 +1,34 @@ +pipeline: + + prep-release: + image: alpine:latest + commands: + - mkdir -p modAchievementStatTrak + - mv content/ modAchievementStatTrak/ + - apk update + - apk add zip -y + - zip -r modAchievementStatTrak.zip modAchievementStatTrak/ + when: + event: tag + + release-stable: + image: plugins/github-release + settings: + api_key: + from_secret: github_token + files: "*.zip" + draft: true + when: + tag: *a + + release-beta: + image: plugins/github-release + settings: + api_key: + from_secret: github_token + files: "*.zip" + draft: true + prerelease: true + when: + tag: + exclude: [ *a ] \ No newline at end of file