streamdeck-remote/.drone.yml

39 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2019-05-22 02:18:23 +00:00
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:
2019-05-22 02:34:21 +00:00
- apk add --update zip jq
2019-05-22 02:18:23 +00:00
- cp /tmp/build/remote.exe /tmp/build/remote plugin/
2019-05-30 01:52:51 +00:00
- VERSION=`cat plugin/manifest.json | jq -r '.Version'`
- echo "v$VERSION" > /tmp/build/version.txt
2019-05-22 02:18:23 +00:00
- mv plugin tf.meow.remote.sdPlugin
- zip -r /tmp/build/tf.meow.remote.streamDeckPlugin tf.meow.remote.sdPlugin
2019-05-22 03:44:26 +00:00
- name: release
2019-05-22 02:18:23 +00:00
volumes:
- name: cache
path: /tmp/build
2019-05-30 01:52:51 +00:00
image: tystuyfzand/drone-gitea-release
settings:
2019-05-30 02:15:39 +00:00
tag_file: /tmp/build/version.txt
2019-05-30 01:52:51 +00:00
name_file: /tmp/build/version.txt
files: [ '/tmp/build/tf.meow.remote.streamDeckPlugin' ]
2019-05-22 03:44:26 +00:00
environment:
2019-05-30 01:52:51 +00:00
PLUGIN_API_KEY:
2019-05-22 02:18:23 +00:00
from_secret: gitea_token
volumes:
- name: cache
temp: {}