Skip to content

Commit

Permalink
Migrate to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
tdemin committed Jul 31, 2021
1 parent d182adb commit 66b2f83
Show file tree
Hide file tree
Showing 10 changed files with 82 additions and 53 deletions.
44 changes: 0 additions & 44 deletions .drone.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/docker.yml
@@ -0,0 +1,30 @@
name: Push to GHCR

on:
release:
types:
- created

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Buildx
uses: docker/setup-buildx-action@v1
- name: Login to registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build & push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/tdemin/gmnhg:latest
ghcr.io/tdemin/gmnhg:${{ github.event.release.tag_name }}
25 changes: 25 additions & 0 deletions .github/workflows/goreleaser.yml
@@ -0,0 +1,25 @@
name: Release

on:
push:
tags:
- '*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Run goreleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/tests.yml
@@ -0,0 +1,21 @@
name: Run tests

on:
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Run tests
run: go test -v ./...
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.41.1
5 changes: 1 addition & 4 deletions .goreleaser.yml
Expand Up @@ -45,9 +45,6 @@ changelog:
- '^test:'

release:
gitea:
github:
owner: tdemin
name: gmnhg

gitea_urls:
api: https://git.tdem.in/api/v1/
2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
# Hugo-to-Gemini converter

[![PkgGoDev](https://pkg.go.dev/badge/git.tdem.in/tdemin/gmnhg)](https://pkg.go.dev/git.tdem.in/tdemin/gmnhg)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/tdemin/gmnhg)](https://pkg.go.dev/github.com/tdemin/gmnhg)

This repo holds a converter of Hugo Markdown posts to
[text/gemini][Gemtext] (also named Gemtext in this README). The
Expand Down
2 changes: 1 addition & 1 deletion cmd/gmnhg/main.go
Expand Up @@ -76,7 +76,7 @@ import (
"strings"
"text/template"

gemini "git.tdem.in/tdemin/gmnhg"
gemini "github.com/tdemin/gmnhg"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cmd/md2gmn/main.go
Expand Up @@ -22,7 +22,7 @@ import (
"io/ioutil"
"os"

gemini "git.tdem.in/tdemin/gmnhg"
gemini "github.com/tdemin/gmnhg"
)

var version = "v0+HEAD"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,4 +1,4 @@
module git.tdem.in/tdemin/gmnhg
module github.com/tdemin/gmnhg

go 1.15

Expand Down
2 changes: 1 addition & 1 deletion render.go
Expand Up @@ -23,9 +23,9 @@ import (
"fmt"
"time"

"git.tdem.in/tdemin/gmnhg/internal/gemini"
"github.com/gomarkdown/markdown"
"github.com/gomarkdown/markdown/parser"
"github.com/tdemin/gmnhg/internal/gemini"
"gopkg.in/yaml.v2"
)

Expand Down

0 comments on commit 66b2f83

Please sign in to comment.