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 jq - 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 - cd tf.meow.remote.sdPlugin - zip -r /tmp/build/tf.meow.remote.streamDeckPlugin . - name: release volumes: - name: cache path: /tmp/build image: alpine:latest environment: TOKEN: from_secret: gitea_token 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: {}