Skip to content

Commit 626362e

Browse files
committed
ci: Setup goreleaser
1 parent bd3ab6e commit 626362e

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: release
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
permissions:
7+
contents: write
8+
jobs:
9+
plugin:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
- uses: actions/setup-go@v5
16+
with:
17+
go-version: "stable"
18+
cache-dependency-path: "./go.sum"
19+
20+
- uses: goreleaser/goreleaser-action@v6
21+
with:
22+
args: release --clean
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
2+
version: 2
3+
4+
builds:
5+
- id: sqlc-gen-kotlin-ichi
6+
main: "./plugin"
7+
binary: sqlc-gen-kotlin-ichi
8+
flags:
9+
- -trimpath
10+
ldflags:
11+
- -s -w
12+
goos:
13+
- wasip1
14+
goarch:
15+
- wasm
16+
17+
changelog:
18+
sort: asc
19+
filters:
20+
exclude:
21+
- "^docs:"
22+
- "^test:"
23+
24+
report_sizes: true
25+
26+
dist: "./bin"
27+
28+
archives:
29+
- formats:
30+
- binary
31+
name_template: "{{ .Binary }}_{{ .Version }}"
32+
33+
release:
34+
draft: true

0 commit comments

Comments
 (0)