From f6e662de2ca56e7e62ab9aa855b767f49326bd92 Mon Sep 17 00:00:00 2001 From: Tyler Date: Wed, 29 May 2019 21:52:51 -0400 Subject: [PATCH] Use new drone plugin for releases --- .drone.yml | 15 ++++++++------- plugin/manifest.json | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4b36c2d..e7e4cbb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,21 +18,22 @@ steps: commands: - apk add --update zip jq - cp /tmp/build/remote.exe /tmp/build/remote plugin/ - - cat plugin/manifest.json | jq -r '.Version' > /tmp/build/version.txt + - VERSION=`cat plugin/manifest.json | jq -r '.Version'` + - echo "v$VERSION" > /tmp/build/version.txt - mv plugin tf.meow.remote.sdPlugin - zip -r /tmp/build/tf.meow.remote.streamDeckPlugin tf.meow.remote.sdPlugin - name: release volumes: - name: cache path: /tmp/build - image: alpine:latest + image: tystuyfzand/drone-gitea-release + settings: + tag_file: /tmp/build.version.txt + name_file: /tmp/build/version.txt + files: [ '/tmp/build/tf.meow.remote.streamDeckPlugin' ] environment: - TOKEN: + PLUGIN_API_KEY: from_secret: gitea_token - commands: - - apk add --update curl - - export VERSION=`cat /tmp/build/version.txt` - - curl -F "server=https://git.meow.tf" -F "token=$TOKEN" -F "repo=$DRONE_REPO" -F "name=v$VERSION" -F "tag_name=v$VERSION" -F "commit=$DRONE_COMMIT" -F "assets[]=@/tmp/build/tf.meow.remote.streamDeckPlugin" https://api.meow.tf/gitea/release/publish volumes: - name: cache temp: {} \ No newline at end of file diff --git a/plugin/manifest.json b/plugin/manifest.json index 4053ec0..08f3898 100644 --- a/plugin/manifest.json +++ b/plugin/manifest.json @@ -51,7 +51,7 @@ "Name": "Remote", "Icon": "images/pluginIcon", "URL": "https://www.elgato.com/gaming/stream-deck", - "Version": "1.2.3", + "Version": "1.2.4", "SDKVersion": 2, "OS": [ {