Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dbb8c18

Browse files
authoredAug 7, 2022
Update workflows and release config (#6)
1 parent 722096e commit dbb8c18

File tree

3 files changed

+73
-82
lines changed

3 files changed

+73
-82
lines changed
 

‎.github/workflows/go.yml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
name: Go
22

33
on:
4-
push:
5-
branches: [ main ]
64
pull_request:
7-
branches: [ main ]
5+
paths:
6+
- "**.go"
87

98
jobs:
10-
119
build:
12-
runs-on: ubuntu-latest
10+
name: Test
11+
runs-on: ubuntu-22.04
1312
steps:
14-
- uses: actions/checkout@v2
15-
16-
- name: Set up Go
17-
uses: actions/setup-go@v2
18-
with:
19-
go-version: 1.17
20-
21-
- name: Build
22-
run: go build -v ./...
23-
24-
- name: Test
25-
run: go test -v ./...
13+
- name: Set up Go
14+
uses: actions/setup-go@v3
15+
with:
16+
go-version: "^1.19"
17+
- name: Check out code into the Go module directory
18+
uses: actions/checkout@v3
19+
- name: Get dependencies
20+
run: |
21+
go get -v -t -d ./...
22+
- name: Build
23+
run: go build -v ./cmd/dbbench/...
24+
- name: Test
25+
run: go test -race ./...
26+
- name: Run golangci-lint
27+
uses: golangci/golangci-lint-action@v3.2.0

‎.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+
- "*"
6+
7+
jobs:
8+
goreleaser:
9+
runs-on: ubuntu-22.04
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
- name: Set up Go
16+
uses: actions/setup-go@v3
17+
with:
18+
go-version: "^1.19"
19+
- name: Run GoReleaser
20+
uses: goreleaser/goreleaser-action@v2
21+
with:
22+
version: latest
23+
args: release --rm-dist
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

‎.goreleaser.yml

Lines changed: 29 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,47 @@
1-
# This is an example goreleaser.yaml file with some sane defaults.
2-
# Make sure to check the documentation at http://goreleaser.com
1+
---
32
project_name: multicode
43

54
before:
65
hooks:
76
- go mod download
87
builds:
9-
-
10-
main: ./cmd/decode/main.go
11-
binary: decode
12-
env:
13-
- CGO_ENABLED=0
14-
- GO111MODULE=on
15-
goos:
16-
- linux
17-
- darwin
18-
- freebsd
19-
- openbsd
20-
- netbsd
21-
- solaris
22-
# -plan9
23-
- dragonfly
24-
- windows
25-
goarch:
26-
- 386
27-
- amd64
28-
- arm
29-
- arm64
30-
# - ppc64
31-
# - ppc64le
32-
# - mips
33-
# - mipsle
34-
# - mips64
35-
# - mips64le
36-
goarm:
37-
- 6
38-
- 7
39-
40-
archive:
41-
wrap_in_directory: true
42-
format_overrides:
43-
- goos: windows
44-
format: zip
45-
files:
46-
- LICENSE
47-
- README.md
48-
49-
8+
- main: ./cmd/decode/main.go
9+
binary: decode
10+
env:
11+
- CGO_ENABLED=0
12+
goos:
13+
- linux
14+
- darwin
15+
- windows
16+
archives:
17+
- format: binary
5018
checksum:
51-
name_template: 'checksums.txt'
52-
19+
name_template: "checksums.txt"
5320
snapshot:
5421
name_template: "{{ .Tag }}-next-{{.Commit}}"
55-
56-
nfpm:
57-
maintainer: Simon Jürgensmeyyer <simon.juergensmeyer@gmail.com>
58-
homepage: https://github.com/sj14/multicode/
59-
description: Decode hex, base64 and protobuf recursively with a single command
60-
license: MIT
61-
formats:
62-
- deb
63-
- rpm
64-
65-
brew:
66-
# name: dbbench
67-
# folder: homebrew-tap
68-
github:
69-
owner: sj14
70-
name: homebrew-tap
71-
description: Decode hex, base64 and protobuf recursively with a single command
72-
22+
# nfpms:
23+
# - maintainer: Simon Jürgensmeyyer <simon.juergensmeyer@gmail.com>
24+
# homepage: https://github.com/sj14/multicode/
25+
# description: Decode bits, hex, base64 and protobuf recursively with a single command
26+
# license: MIT
27+
# formats:
28+
# - deb
29+
# - rpm
30+
# - apk # not tested
31+
brews:
32+
- name: multicode
33+
skip_upload: auto
34+
tap:
35+
owner: sj14
36+
name: homebrew-tap
37+
description: "Decode bits, hex, base64 and protobuf recursively with a single command"
7338
release:
7439
github:
7540
owner: sj14
7641
name: multicode
7742
disable: false
7843
draft: false
79-
prerelease: false
80-
44+
prerelease: auto
8145
changelog:
8246
filters:
8347
exclude:

0 commit comments

Comments
 (0)
Please sign in to comment.