Skip to content

Commit 8c146e4

Browse files
committed
copy .github from gauth
1 parent 3619757 commit 8c146e4

File tree

4 files changed

+100
-1
lines changed

4 files changed

+100
-1
lines changed

.github/workflows/go-presubmit.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Go presubmit
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, reopened, synchronize]
9+
10+
jobs:
11+
build:
12+
name: Go presubmit
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
go-version: ['1.13', '1.14', '1.15', '1.16', '1.17', '1.18']
17+
steps:
18+
- name: Install Go ${{ matrix.go-version }}
19+
uses: actions/setup-go@v1
20+
with:
21+
go-version: ${{ matrix.go-version }}
22+
- uses: actions/checkout@v2
23+
- uses: creachadair/go-presubmit-action@v1
24+
with:
25+
staticcheck-version: "2020.1.6"

.github/workflows/goreleaser.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: goreleaser
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- '*'
9+
pull_request:
10+
types: [opened, reopened, synchronize]
11+
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
goreleaser:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Set up Go
25+
uses: actions/setup-go@v2
26+
with:
27+
go-version: 1.17
28+
29+
- name: Run GoReleaser release (SKIP publish)
30+
uses: goreleaser/goreleaser-action@v3
31+
if: startsWith(github.ref, 'refs/tags/') != true
32+
with:
33+
distribution: goreleaser
34+
version: latest
35+
args: release --rm-dist --skip-publish
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
39+
- name: Run GoReleaser release
40+
uses: goreleaser/goreleaser-action@v3
41+
if: startsWith(github.ref, 'refs/tags/')
42+
with:
43+
distribution: goreleaser
44+
version: latest
45+
args: release --rm-dist
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
# You may remove this if you don't use go modules.
6+
- go mod tidy
7+
# you may remove this if you don't need go generate
8+
- go generate ./...
9+
builds:
10+
- env:
11+
- CGO_ENABLED=0
12+
goos:
13+
- linux
14+
- windows
15+
- darwin
16+
archives:
17+
- format: binary
18+
checksum:
19+
name_template: 'checksums.txt'
20+
snapshot:
21+
name_template: "{{ incpatch .Version }}-next"
22+
changelog:
23+
sort: asc
24+
filters:
25+
exclude:
26+
- '^docs:'
27+
- '^test:'

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/pcarrier/vanity-keygen
22

3-
go 1.18
3+
go 1.17
44

55
require (
66
github.com/mikesmitty/edkey v0.0.0-20170222072505-3356ea4e686a // indirect

0 commit comments

Comments
 (0)