txt2doc/.drone.yml

63 lines
1.0 KiB
YAML
Raw Normal View History

2024-08-15 16:45:07 +00:00
kind: pipeline
name: default
workspace:
base: /go
path: src/deadbeef.codes/steven/txt2doc
steps:
- name: build txt2doc linux-amd64
image: golang
pull: always
volumes:
- name: publicrelease
path: /dist
environment:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 0
commands:
- go version
- go get
- go build -a -ldflags '-w' -o /dist/txt2doc-linux-amd64 .
- name: build txt2doc windows-amd64
image: golang
pull: always
volumes:
- name: publicrelease
path: /dist
environment:
GOOS: windows
GOARCH: amd64
CGO_ENABLED: 0
commands:
- go version
- go get
- go build -a -ldflags '-w' -o /dist/txt2doc-windows-amd64.exe .
- name: release
image: plugins/gitea-release
pull: always
volumes:
- name: publicrelease
path: /dist
settings:
api_key:
from_secret: drone_token
base_url: https://code.stevenpolley.net
files: /dist/*
when:
event:
- tag
volumes:
- name: publicrelease
host:
path: /data/public/build/txt2doc