streamdeck-remote/.drone.yml

44 lines
1.1 KiB
YAML

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
- 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: {}