hugo-to-gemini/.drone.yml
2020-11-20 16:20:06 +05:00

27 lines
463 B
YAML

kind: pipeline
name: build & release
steps:
- name: fetch tags
image: docker:git
commands:
- git fetch --tags
when:
event: tag
- name: test
image: golang:1.14
commands:
- go test -v ./internal/gemini
when:
event:
exclude:
- tag
- name: release
image: golang:1.15
environment:
GITEA_TOKEN:
from_secret: goreleaser_gitea_token
commands:
- curl -sL https://git.io/goreleaser | bash
when:
event: tag