guildgate/.drone.yml

32 lines
510 B
YAML
Raw Normal View History

2021-08-07 14:32:34 -04:00
kind: pipeline
name: default
steps:
- name: build
image: golang
commands:
- make
- name: create release tar
image: golang
commands:
2021-08-07 15:00:42 -04:00
- mkdir dist build
- make install
- tar -czf dist/release-$DRONE_TAG-$DRONE_STAGE_ARCH.tar.gz build/*
2021-08-07 14:32:34 -04:00
when:
event: tag
2021-08-07 15:00:42 -04:00
environment:
DESTDIR: build
2021-08-07 14:32:34 -04:00
- name: release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
files:
- dist/*
base_url: https://git.saintnet.tech
when:
event: tag