diff --git a/drone.yml b/drone.yml new file mode 100644 index 0000000..1c22a92 --- /dev/null +++ b/drone.yml @@ -0,0 +1,44 @@ +kind: pipeline +name: default + +steps: + - name: binary + volumes: + - name: cache + path: /tmp/build + image: golang + commands: + - GOOS=windows GOARCH=amd64 go build -o /tmp/build/remote.exe + - GOOS=darwin GOARCH=amd64 go build -o /tmp/build/remote + - name: package + volumes: + - name: cache + path: /tmp/build + image: alpine:latest + commands: + - apk add --update zip + - cp /tmp/build/remote.exe /tmp/build/remote plugin/ + - cat plugin/manifest.json | jq -r '.Version' > /tmp/build/version.txt + - mv plugin tf.meow.remote.sdPlugin + - zip -r /tmp/build/tf.meow.remote.streamDeckPlugin tf.meow.remote.sdPlugin + - name: gitea_release + volumes: + - name: cache + path: /tmp/build + image: plugins/gitea-release + settings: + base_url: https://git.meow.tf + api_key: + from_secret: gitea_token + files: /tmp/build/tf.meow.remote.streamDeckPlugin + title: /tmp/build/version.txt + checksum: + - md5 + - sha1 + - sha256 + - sha512 + - adler32 + - crc32 +volumes: + - name: cache + temp: {} \ No newline at end of file