chore: added goreleaser 866c3e5e
Steve Simkins · 2026-05-18 16:59 13 file(s) · +425 −0
.github/workflows/release-go.yml (added) +44 −0
1 +
name: Release Go
2 +
3 +
on:
4 +
  push:
5 +
    tags:
6 +
      - '*-go/v[0-9]+.[0-9]+.[0-9]+*'
7 +
8 +
permissions:
9 +
  contents: write
10 +
11 +
jobs:
12 +
  goreleaser:
13 +
    runs-on: ubuntu-latest
14 +
    steps:
15 +
      - uses: actions/checkout@v6
16 +
        with:
17 +
          fetch-depth: 0
18 +
19 +
      - name: Set up Go
20 +
        uses: actions/setup-go@v6
21 +
        with:
22 +
          go-version: '1.25.x'
23 +
24 +
      - name: Derive app + version
25 +
        id: app
26 +
        run: |
27 +
          tag="${GITHUB_REF_NAME}"
28 +
          app="${tag%%/*}"
29 +
          version="${tag#*/}"
30 +
          echo "app=$app" >> "$GITHUB_OUTPUT"
31 +
          echo "dir=apps/$app" >> "$GITHUB_OUTPUT"
32 +
          echo "version=$version" >> "$GITHUB_OUTPUT"
33 +
34 +
      - name: Run GoReleaser
35 +
        uses: goreleaser/goreleaser-action@v6
36 +
        with:
37 +
          distribution: goreleaser
38 +
          version: '~> v2'
39 +
          args: release --clean
40 +
          workdir: ${{ steps.app.outputs.dir }}
41 +
        env:
42 +
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43 +
          HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
44 +
          GORELEASER_CURRENT_TAG: ${{ steps.app.outputs.version }}
.github/workflows/release.yml +2 −0
47 47
  # Run 'dist plan' (or host) to determine what tasks we need to do
48 48
  plan:
49 49
    runs-on: "ubuntu-22.04"
50 +
    # Skip Go releases — handled by release-go.yml
51 +
    if: ${{ !contains(github.ref_name, '-go/') }}
50 52
    outputs:
51 53
      val: ${{ steps.plan.outputs.manifest }}
52 54
      tag: ${{ !github.event.pull_request && github.ref_name || '' }}
.gitignore +3 −0
9 9
apps/posts/uploads
10 10
docs/node_modules
11 11
12 +
# GoReleaser
13 +
apps/*-go/dist/
14 +
12 15
# Go
13 16
*.exe
14 17
*.dll
apps/bookmarks-go/.goreleaser.yaml (added) +35 −0
1 +
version: 2
2 +
3 +
project_name: bookmarks-go
4 +
5 +
before:
6 +
  hooks:
7 +
    - go mod tidy
8 +
9 +
builds:
10 +
  - id: bookmarks-go
11 +
    main: .
12 +
    binary: bookmarks-go
13 +
    env:
14 +
      - CGO_ENABLED=0
15 +
    goos: [linux, darwin]
16 +
    goarch: [amd64, arm64]
17 +
    ldflags:
18 +
      - -s -w -X main.version={{.Version}}
19 +
20 +
archives:
21 +
  - id: default
22 +
    formats: [tar.gz]
23 +
    name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
24 +
25 +
checksum:
26 +
  name_template: "checksums.txt"
27 +
28 +
changelog:
29 +
  use: github
30 +
  sort: asc
31 +
32 +
release:
33 +
  github:
34 +
    owner: stevedylandev
35 +
    name: andromeda
apps/cellar-go/.goreleaser.yaml (added) +35 −0
1 +
version: 2
2 +
3 +
project_name: cellar-go
4 +
5 +
before:
6 +
  hooks:
7 +
    - go mod tidy
8 +
9 +
builds:
10 +
  - id: cellar-go
11 +
    main: .
12 +
    binary: cellar-go
13 +
    env:
14 +
      - CGO_ENABLED=0
15 +
    goos: [linux, darwin]
16 +
    goarch: [amd64, arm64]
17 +
    ldflags:
18 +
      - -s -w -X main.version={{.Version}}
19 +
20 +
archives:
21 +
  - id: default
22 +
    formats: [tar.gz]
23 +
    name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
24 +
25 +
checksum:
26 +
  name_template: "checksums.txt"
27 +
28 +
changelog:
29 +
  use: github
30 +
  sort: asc
31 +
32 +
release:
33 +
  github:
34 +
    owner: stevedylandev
35 +
    name: andromeda
apps/easel-go/.goreleaser.yaml (added) +35 −0
1 +
version: 2
2 +
3 +
project_name: easel-go
4 +
5 +
before:
6 +
  hooks:
7 +
    - go mod tidy
8 +
9 +
builds:
10 +
  - id: easel-go
11 +
    main: .
12 +
    binary: easel-go
13 +
    env:
14 +
      - CGO_ENABLED=0
15 +
    goos: [linux, darwin]
16 +
    goarch: [amd64, arm64]
17 +
    ldflags:
18 +
      - -s -w -X main.version={{.Version}}
19 +
20 +
archives:
21 +
  - id: default
22 +
    formats: [tar.gz]
23 +
    name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
24 +
25 +
checksum:
26 +
  name_template: "checksums.txt"
27 +
28 +
changelog:
29 +
  use: github
30 +
  sort: asc
31 +
32 +
release:
33 +
  github:
34 +
    owner: stevedylandev
35 +
    name: andromeda
apps/feeds-go/.goreleaser.yaml (added) +35 −0
1 +
version: 2
2 +
3 +
project_name: feeds-go
4 +
5 +
before:
6 +
  hooks:
7 +
    - go mod tidy
8 +
9 +
builds:
10 +
  - id: feeds-go
11 +
    main: .
12 +
    binary: feeds-go
13 +
    env:
14 +
      - CGO_ENABLED=0
15 +
    goos: [linux, darwin]
16 +
    goarch: [amd64, arm64]
17 +
    ldflags:
18 +
      - -s -w -X main.version={{.Version}}
19 +
20 +
archives:
21 +
  - id: default
22 +
    formats: [tar.gz]
23 +
    name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
24 +
25 +
checksum:
26 +
  name_template: "checksums.txt"
27 +
28 +
changelog:
29 +
  use: github
30 +
  sort: asc
31 +
32 +
release:
33 +
  github:
34 +
    owner: stevedylandev
35 +
    name: andromeda
apps/jotts-go/.goreleaser.yaml (added) +48 −0
1 +
version: 2
2 +
3 +
project_name: jotts-go
4 +
5 +
before:
6 +
  hooks:
7 +
    - go mod tidy
8 +
9 +
builds:
10 +
  - id: jotts-go
11 +
    main: .
12 +
    binary: jotts-go
13 +
    env:
14 +
      - CGO_ENABLED=0
15 +
    goos: [linux, darwin]
16 +
    goarch: [amd64, arm64]
17 +
    ldflags:
18 +
      - -s -w -X main.version={{.Version}}
19 +
20 +
archives:
21 +
  - id: default
22 +
    formats: [tar.gz]
23 +
    name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
24 +
25 +
checksum:
26 +
  name_template: "checksums.txt"
27 +
28 +
changelog:
29 +
  use: github
30 +
  sort: asc
31 +
32 +
release:
33 +
  github:
34 +
    owner: stevedylandev
35 +
    name: andromeda
36 +
37 +
brews:
38 +
  - name: jotts-go
39 +
    repository:
40 +
      owner: stevedylandev
41 +
      name: homebrew-tap
42 +
      token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
43 +
    commit_author:
44 +
      name: goreleaserbot
45 +
      email: bot@goreleaser.com
46 +
    homepage: https://github.com/stevedylandev/andromeda
47 +
    description: "Andromeda jotts-go: markdown notes app"
48 +
    license: MIT
apps/library-go/.goreleaser.yaml (added) +35 −0
1 +
version: 2
2 +
3 +
project_name: library-go
4 +
5 +
before:
6 +
  hooks:
7 +
    - go mod tidy
8 +
9 +
builds:
10 +
  - id: library-go
11 +
    main: .
12 +
    binary: library-go
13 +
    env:
14 +
      - CGO_ENABLED=0
15 +
    goos: [linux, darwin]
16 +
    goarch: [amd64, arm64]
17 +
    ldflags:
18 +
      - -s -w -X main.version={{.Version}}
19 +
20 +
archives:
21 +
  - id: default
22 +
    formats: [tar.gz]
23 +
    name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
24 +
25 +
checksum:
26 +
  name_template: "checksums.txt"
27 +
28 +
changelog:
29 +
  use: github
30 +
  sort: asc
31 +
32 +
release:
33 +
  github:
34 +
    owner: stevedylandev
35 +
    name: andromeda
apps/og-go/.goreleaser.yaml (added) +35 −0
1 +
version: 2
2 +
3 +
project_name: og-go
4 +
5 +
before:
6 +
  hooks:
7 +
    - go mod tidy
8 +
9 +
builds:
10 +
  - id: og-go
11 +
    main: .
12 +
    binary: og-go
13 +
    env:
14 +
      - CGO_ENABLED=0
15 +
    goos: [linux, darwin]
16 +
    goarch: [amd64, arm64]
17 +
    ldflags:
18 +
      - -s -w -X main.version={{.Version}}
19 +
20 +
archives:
21 +
  - id: default
22 +
    formats: [tar.gz]
23 +
    name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
24 +
25 +
checksum:
26 +
  name_template: "checksums.txt"
27 +
28 +
changelog:
29 +
  use: github
30 +
  sort: asc
31 +
32 +
release:
33 +
  github:
34 +
    owner: stevedylandev
35 +
    name: andromeda
apps/posts-go/.goreleaser.yaml (added) +35 −0
1 +
version: 2
2 +
3 +
project_name: posts-go
4 +
5 +
before:
6 +
  hooks:
7 +
    - go mod tidy
8 +
9 +
builds:
10 +
  - id: posts-go
11 +
    main: .
12 +
    binary: posts-go
13 +
    env:
14 +
      - CGO_ENABLED=0
15 +
    goos: [linux, darwin]
16 +
    goarch: [amd64, arm64]
17 +
    ldflags:
18 +
      - -s -w -X main.version={{.Version}}
19 +
20 +
archives:
21 +
  - id: default
22 +
    formats: [tar.gz]
23 +
    name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
24 +
25 +
checksum:
26 +
  name_template: "checksums.txt"
27 +
28 +
changelog:
29 +
  use: github
30 +
  sort: asc
31 +
32 +
release:
33 +
  github:
34 +
    owner: stevedylandev
35 +
    name: andromeda
apps/shrink-go/.goreleaser.yaml (added) +35 −0
1 +
version: 2
2 +
3 +
project_name: shrink-go
4 +
5 +
before:
6 +
  hooks:
7 +
    - go mod tidy
8 +
9 +
builds:
10 +
  - id: shrink-go
11 +
    main: .
12 +
    binary: shrink-go
13 +
    env:
14 +
      - CGO_ENABLED=0
15 +
    goos: [linux, darwin]
16 +
    goarch: [amd64, arm64]
17 +
    ldflags:
18 +
      - -s -w -X main.version={{.Version}}
19 +
20 +
archives:
21 +
  - id: default
22 +
    formats: [tar.gz]
23 +
    name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
24 +
25 +
checksum:
26 +
  name_template: "checksums.txt"
27 +
28 +
changelog:
29 +
  use: github
30 +
  sort: asc
31 +
32 +
release:
33 +
  github:
34 +
    owner: stevedylandev
35 +
    name: andromeda
apps/sipp-go/.goreleaser.yaml (added) +48 −0
1 +
version: 2
2 +
3 +
project_name: sipp-go
4 +
5 +
before:
6 +
  hooks:
7 +
    - go mod tidy
8 +
9 +
builds:
10 +
  - id: sipp-go
11 +
    main: .
12 +
    binary: sipp-go
13 +
    env:
14 +
      - CGO_ENABLED=0
15 +
    goos: [linux, darwin]
16 +
    goarch: [amd64, arm64]
17 +
    ldflags:
18 +
      - -s -w -X main.version={{.Version}}
19 +
20 +
archives:
21 +
  - id: default
22 +
    formats: [tar.gz]
23 +
    name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
24 +
25 +
checksum:
26 +
  name_template: "checksums.txt"
27 +
28 +
changelog:
29 +
  use: github
30 +
  sort: asc
31 +
32 +
release:
33 +
  github:
34 +
    owner: stevedylandev
35 +
    name: andromeda
36 +
37 +
brews:
38 +
  - name: sipp-go
39 +
    repository:
40 +
      owner: stevedylandev
41 +
      name: homebrew-tap
42 +
      token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
43 +
    commit_author:
44 +
      name: goreleaserbot
45 +
      email: bot@goreleaser.com
46 +
    homepage: https://github.com/stevedylandev/andromeda
47 +
    description: "Andromeda sipp-go: code sharing server + CLI"
48 +
    license: MIT