Add CI config and pkg.go.dev link

This commit is contained in:
Timur Demin 2020-11-20 16:19:01 +05:00
parent 2211c5ffdd
commit 2d55d4f1e6
No known key found for this signature in database
GPG key ID: 9EDF3F9D9286FA20
3 changed files with 80 additions and 0 deletions

27
.drone.yml Normal file
View file

@ -0,0 +1,27 @@
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

51
.goreleaser.yml Normal file
View file

@ -0,0 +1,51 @@
builds:
- main: ./cmd/gmnhg
id: gmnhg
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
- freebsd
- openbsd
- netbsd
- main: ./cmd/md2gmn
id: md2gmn
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
- freebsd
- openbsd
- netbsd
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
freebsd: FreeBSD
openbsd: OpenBSD
netbsd: NetBSD
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
gitea:
owner: tdemin
name: gmnhg
gitea_urls:
api: https://git.tdem.in/api/v1/

View file

@ -1,5 +1,7 @@
# Hugo-to-Gemini converter
[![PkgGoDev](https://pkg.go.dev/badge/git.tdem.in/tdemin/gmnhg)](https://pkg.go.dev/git.tdem.in/tdemin/gmnhg)
This repo holds a converter of Hugo Markdown posts to
[text/gemini][Gemtext] (also named Gemtext in this README). The
converter is supposed to make people using [Hugo](https://gohugo.io)'s