-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Release Go project | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" # triggers only if push new tag version, like `0.8.4` or else | ||
|
||
jobs: | ||
build: | ||
name: GoReleaser build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/ | ||
|
||
- name: Set up Go 1.18 | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.18 | ||
id: go | ||
|
||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@master | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
project_name: ordpunk | ||
|
||
builds: | ||
- # You can have multiple builds defined as a yaml list | ||
|
||
# Binary name. | ||
# Can be a path (e.g. `bin/app`) to wrap the binary in a directory. | ||
# Default is the name of the project directory. | ||
binary: ordpunkd | ||
|
||
|
||
# GOOS list to build for. | ||
# For more info refer to: https://golang.org/doc/install/source#environment | ||
# Defaults are darwin and linux. | ||
goos: | ||
- linux | ||
- windows | ||
- darwin | ||
# - freebsd | ||
|
||
# GOARCH to build for. | ||
# For more info refer to: https://golang.org/doc/install/source#environment | ||
# Defaults are 386, amd64 and arm64. | ||
goarch: | ||
- amd64 | ||
- arm ## used by rasberry - linux arm 32-bit | ||
- arm64 | ||
|
||
|
||
# Optionally override the matrix generation and specify only the final list of targets. | ||
# Format is `{goos}_{goarch}` with optionally a suffix with `_{goarm}` or `_{gomips}`. | ||
# This overrides `goos`, `goarch`, `goarm`, `gomips` and `ignores`. | ||
targets: | ||
- linux_amd64 | ||
- linux_arm # rasberry - linux arm 32-bit | ||
- windows_amd64 | ||
- darwin_amd64 | ||
- darwin_arm64 | ||
# - freebsd_amd64 | ||
|
||
|
||
archives: | ||
- | ||
|
||
# change darwin - to macos or such - why? why not? | ||
|
||
# Can be used to change the archive formats for specific GOOS. | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
replacements: | ||
amd64: 64bit | ||
386: 32bit | ||
darwin: macos |