streamdeck-remote/.drone.yml

47 lines
1.1 KiB
YAML
Raw 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/
- cat plugin/manifest.json | jq -r '.Version' > /tmp/build/version.txt
- mv plugin tf.meow.remote.sdPlugin
2019-05-22 02:39:22 +00:00
- cd tf.meow.remote.sdPlugin
- zip -r /tmp/build/tf.meow.remote.streamDeckPlugin .
2019-05-22 02:18:23 +00:00
- 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
2019-05-22 02:39:22 +00:00
when:
event: tag
2019-05-22 02:18:23 +00:00
volumes:
- name: cache
temp: {}