streamdeck-obs-replay/.drone.yml

39 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2020-01-15 04:32:53 +00:00
kind: pipeline
name: default
steps:
- name: binary
volumes:
- name: cache
path: /tmp/build
image: golang
commands:
2020-01-15 04:34:39 +00:00
- GOOS=windows GOARCH=amd64 go build -o /tmp/build/replay.exe
- GOOS=darwin GOARCH=amd64 go build -o /tmp/build/replay
2020-01-15 04:32:53 +00:00
- name: package
volumes:
- name: cache
path: /tmp/build
image: alpine:latest
commands:
- apk add --update zip jq
- cp /tmp/build/replay.exe /tmp/build/replay plugin/
- VERSION=`cat plugin/manifest.json | jq -r '.Version'`
- echo "v$VERSION" > /tmp/build/version.txt
- mv plugin tf.meow.obsreplay.sdPlugin
- zip -r /tmp/build/tf.meow.obsreplay.streamDeckPlugin tf.meow.obsreplay.sdPlugin
- name: release
volumes:
- name: cache
path: /tmp/build
image: tystuyfzand/drone-gitea-release
settings:
tag_file: /tmp/build/version.txt
title_file: /tmp/build/version.txt
files: [ '/tmp/build/tf.meow.obsreplay.streamDeckPlugin' ]
environment:
PLUGIN_API_KEY:
from_secret: gitea_token
volumes:
- name: cache
temp: {}