Skip to content

Commit dfc7e95

Browse files
committed
Move to SQLite
1 parent a12e6d5 commit dfc7e95

File tree

16 files changed

+3107
-2156
lines changed

16 files changed

+3107
-2156
lines changed

.github/workflows/goreleaser.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: goreleaser
2+
on:
3+
push:
4+
tags:
5+
- "v*"
6+
permissions:
7+
contents: write
8+
jobs:
9+
goreleaser:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
- name: Set up Go
17+
uses: actions/setup-go@v5
18+
- name: Run GoReleaser
19+
uses: goreleaser/goreleaser-action@v6
20+
with:
21+
# either 'goreleaser' (default) or 'goreleaser-pro'
22+
distribution: goreleaser
23+
# 'latest', 'nightly', or a semver
24+
version: "~> v2"
25+
args: release --clean
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
29+
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

.goreleaser.yaml

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,46 @@
11
# This is an example .goreleaser.yml file with some sensible defaults.
22
# Make sure to check the documentation at https://goreleaser.com
3+
4+
# The lines below are called `modelines`. See `:help modeline`
5+
# Feel free to remove those if you don't want/need to use them.
6+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
7+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
8+
9+
version: 2
10+
311
before:
412
hooks:
513
# You may remove this if you don't use go modules.
614
- go mod tidy
715
# you may remove this if you don't need go generate
816
- go generate ./...
17+
918
builds:
1019
- env:
1120
- CGO_ENABLED=0
1221
goos:
1322
- linux
1423
- windows
1524
- darwin
25+
1626
archives:
17-
- files:
18-
- README.md
19-
- LICENSE
20-
- 'preview.png'
27+
- format: tar.gz
28+
# this name template makes the OS and Arch compatible with the results of `uname`.
29+
name_template: >-
30+
{{ .ProjectName }}_
31+
{{- title .Os }}_
32+
{{- if eq .Arch "amd64" }}x86_64
33+
{{- else if eq .Arch "386" }}i386
34+
{{- else }}{{ .Arch }}{{ end }}
35+
{{- if .Arm }}v{{ .Arm }}{{ end }}
36+
# use zip for windows archives
2137
format_overrides:
22-
- goos: windows
23-
format: zip
24-
replacements:
25-
darwin: Darwin
26-
linux: Linux
27-
windows: Windows
28-
386: i386
29-
amd64: x86_64
30-
checksum:
31-
name_template: 'checksums.txt'
32-
snapshot:
33-
name_template: "{{ incpatch .Version }}-next"
38+
- goos: windows
39+
format: zip
40+
3441
changelog:
3542
sort: asc
3643
filters:
3744
exclude:
38-
- '^docs:'
39-
- '^test:'
45+
- "^docs:"
46+
- "^test:"

config.go

Lines changed: 0 additions & 26 deletions
This file was deleted.

db.go

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)