Skip to content

Commit

Permalink
use CI to release binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Apr 3, 2022
1 parent ee5780e commit ed7a7e9
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 19 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release
on:
push:
tags:
- "v*.*.*"

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '>=1.18.0'
- uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42 changes: 42 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
release:
draft: false
prerelease: true

# No dependencies in this repo
#
# before:
# hooks:
# - go mod download

builds:
- id: macos
goos: [darwin]
goarch: [amd64, arm64]

- id: linux
goos: [linux]
goarch: [386, arm, amd64, arm64]

- id: windows
goos: [windows]
goarch: [amd64, arm64]

- id: freebsd
goos: [freebsd]
goarch: [386, amd64]

archives:
- <<: &archives_defaults
files:
- README.md
- LICENSE
id: nix
builds: [macos, linux, freebsd]
format: tar.gz
- <<: *archives_defaults
id: windows
builds: [windows]
format: zip

changelog:
skip: true
19 changes: 0 additions & 19 deletions scripts/make-release.sh

This file was deleted.

0 comments on commit ed7a7e9

Please sign in to comment.