Skip to content

Commit c614a9c

Browse files
chore: Use goreleaser (#31)
* ci: Use goreleaser * Run on tags
1 parent 37872cb commit c614a9c

File tree

4 files changed

+90
-3
lines changed

4 files changed

+90
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
on:
2-
release:
3-
types: [published]
1+
on: {}
42
jobs:
53
releases-matrix:
64
name: Release Go Binaries

.github/workflows/releasev2.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: goreleaser
2+
3+
on:
4+
push:
5+
# run only against tags
6+
tags:
7+
- '*'
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
goreleaser:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
21+
- run: git fetch --force --tags
22+
23+
- name: Set up Go
24+
uses: actions/setup-go@v3
25+
with:
26+
go-version: 1.19
27+
28+
- name: Run GoReleaser
29+
uses: goreleaser/goreleaser-action@v4
30+
with:
31+
distribution: goreleaser
32+
version: latest
33+
args: release --clean --release-notes=${{ github.event.release.body }} --skip-validate --debug
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ target-jsonl-blob
2121

2222
# Dependency directories (remove the comment below to include it)
2323
# vendor/
24+
25+
dist/

.goreleaser.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
3+
before:
4+
hooks:
5+
- go mod tidy
6+
- go mod download
7+
8+
builds:
9+
- env:
10+
- CGO_ENABLED=0
11+
goos:
12+
- linux
13+
- windows
14+
- darwin
15+
goarch:
16+
- "386"
17+
- "amd64"
18+
- "arm64"
19+
20+
archives:
21+
- format_overrides:
22+
- goos: windows
23+
format: zip
24+
25+
release:
26+
github:
27+
owner: MeltanoLabs
28+
name: target-jsonl-blob
29+
prerelease: auto
30+
31+
brews:
32+
- tap:
33+
owner: miniscruff
34+
name: changie
35+
homepage: https://github.com/MeltanoLabs/target-jsonl-blob
36+
description: JSONL Singer target for local storage, S3 and Azure Blob Storage.
37+
license: Apache-2.0
38+
skip_upload: auto
39+
40+
checksum:
41+
name_template: 'checksums.txt'
42+
43+
snapshot:
44+
name_template: "{{ .Tag }}-next"
45+
46+
changelog:
47+
skip: false
48+
49+
# The lines beneath this are called `modelines`. See `:help modeline`
50+
# Feel free to remove those if you don't want/use them.
51+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
52+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

0 commit comments

Comments
 (0)