Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Commit ac58589

Browse files
authored
chore: add release job and goreleaser config (#18)
1 parent d788ecd commit ac58589

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

.github/workflows/release.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
permissions:
9+
actions: none
10+
checks: none
11+
contents: write
12+
deployments: none
13+
issues: none
14+
packages: none
15+
pull-requests: none
16+
repository-projects: none
17+
security-events: none
18+
statuses: none
19+
20+
jobs:
21+
goreleaser:
22+
runs-on: ubuntu-latest
23+
steps:
24+
-
25+
name: Checkout
26+
uses: actions/checkout@v2
27+
with:
28+
fetch-depth: 0
29+
-
30+
name: Set up Go
31+
uses: actions/setup-go@v2
32+
with:
33+
go-version: 1.17
34+
-
35+
name: Run GoReleaser
36+
uses: goreleaser/goreleaser-action@v2
37+
with:
38+
# either 'goreleaser' (default) or 'goreleaser-pro'
39+
distribution: goreleaser
40+
version: latest
41+
args: release --rm-dist
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
45+
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/

.goreleaser.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
project_name: coder-doctor
2+
builds:
3+
- env: [CGO_ENABLED=0]
4+
goos:
5+
- linux
6+
- windows
7+
- darwin
8+
goarch:
9+
- amd64
10+
- arm64

0 commit comments

Comments
 (0)