Skip to content

Commit

Permalink
Add CI config and pkg.go.dev link
Browse files Browse the repository at this point in the history
  • Loading branch information
tdemin committed Nov 20, 2020
1 parent 2211c5f commit 2d55d4f
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .drone.yml
@@ -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 changes: 51 additions & 0 deletions .goreleaser.yml
@@ -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/
2 changes: 2 additions & 0 deletions README.md
@@ -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
Expand Down

0 comments on commit 2d55d4f

Please sign in to comment.