feat: add docs checker for ADRs and implementation plans #1

Merged
end merged 13 commits from feat/docs-checker into main 2026-10-23 15:56:04 -07:00
4 changed files with 85 additions and 0 deletions
Showing only changes of commit e5c203d465 - Show all commits

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
name: ci
on:
push:
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
with:
fetch-depth: 0
- uses: actions/setup-go@v7.0.0
with:
go-version-file: go.mod
- name: gofmt
run: test -z "$(gofmt -l .)"
- run: go vet ./...
- run: go test -race ./...
- run: go run ./cmd/docs check
- uses: goreleaser/goreleaser-action@v7.3.0
with:
distribution: goreleaser
version: v2.19.0
args: check
- uses: goreleaser/goreleaser-action@v7.3.0
with:
distribution: goreleaser
version: v2.19.0
args: release --snapshot --clean
+24
View File
@@ -0,0 +1,24 @@
name: release
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
with:
fetch-depth: 0
- uses: actions/setup-go@v7.0.0
with:
go-version-file: go.mod
- uses: goreleaser/goreleaser-action@v7.3.0
with:
distribution: goreleaser
version: v2.19.0
args: release --clean
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
+1
View File
@@ -0,0 +1 @@
dist/
+29
View File
@@ -0,0 +1,29 @@
version: 2
project_name: docs
builds:
- id: docs
main: ./cmd/docs
binary: docs
env:
- CGO_ENABLED=0
goos: [darwin, linux]
goarch: [amd64, arm64]
flags: [-trimpath]
ldflags: [-s -w]
archives:
- formats: [tar.gz]
name_template: "docs_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: checksums.txt
gitea_urls:
api: https://gitea.auvem.com/api/v1
download: https://gitea.auvem.com
release:
gitea:
owner: corestack
name: go