diff --git a/.drone.yml b/.drone.yml index 2ee9b4e..62dca7d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,26 +22,18 @@ steps: - mv plugin tf.meow.remote.sdPlugin - cd tf.meow.remote.sdPlugin - zip -r /tmp/build/tf.meow.remote.streamDeckPlugin . - - name: gitea_release + - name: release volumes: - name: cache path: /tmp/build - image: plugins/gitea-release - settings: - base_url: https://git.meow.tf - api_key: + image: alpine:latest + environment: + TOKEN: from_secret: gitea_token - files: /tmp/build/tf.meow.remote.streamDeckPlugin - title: /tmp/build/version.txt - checksum: - - md5 - - sha1 - - sha256 - - sha512 - - adler32 - - crc32 - when: - event: tag + commands: + - apk add --update curl + - export VERSION=`cat /tmp/build/version.txt` + - curl -F 'server=https://git.meow.tf&token=$TOKEN&repo=$DRONE_REPO&name=$VERSION&tag_name=v$VERSION&commit=DRONE_COMMIT&assets[]=@/tmp/build/tf.meow.remote.streamDeckPlugin' https://api.meow.tf/gitea/release/publish volumes: - name: cache temp: {} \ No newline at end of file