-
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
5 changed files
with
77 additions
and
5 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,32 @@ | ||
# https://goreleaser.com/ci/actions/#workflow | ||
name: "goreleaser" | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: [ "v*" ] | ||
|
||
permissions: | ||
contents: "write" | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v4" | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: "Set up Go" | ||
uses: "actions/setup-go@v5" | ||
with: | ||
go-version-file: 'go.mod' | ||
|
||
- name: "Run GoReleaser" | ||
uses: "goreleaser/goreleaser-action@v5" | ||
with: | ||
version: "latest" | ||
args: "release --clean" | ||
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,2 @@ | ||
/.env.local | ||
/dist/ |
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,37 @@ | ||
# This is an example .goreleaser.yml file with some sensible defaults. | ||
# Make sure to check the documentation at https://goreleaser.com | ||
|
||
# The lines below are called `modelines`. See `:help modeline` | ||
# Feel free to remove those if you don't want/need to use them. | ||
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json | ||
# vim: set ts=2 sw=2 tw=0 fo=cnqoj | ||
|
||
version: 1 | ||
|
||
before: | ||
hooks: | ||
- "go mod tidy" | ||
|
||
builds: | ||
- env: | ||
- "CGO_ENABLED=0" | ||
goos: | ||
- "freebsd" | ||
- "linux" | ||
goarch: | ||
- "amd64" | ||
- "arm64" | ||
|
||
archives: | ||
- format: "tar.gz" | ||
# use zip for windows archives | ||
format_overrides: | ||
- goos: "windows" | ||
format: "zip" | ||
|
||
changelog: | ||
sort: "asc" | ||
filters: | ||
exclude: | ||
- "^docs:" | ||
- "^test:" |
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
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/dsh2dsh/check_wg/cmd" | ||
) | ||
import "github.com/dsh2dsh/check_wg/cmd" | ||
|
||
var version string | ||
|
||
func main() { | ||
cmd.Execute() | ||
cmd.Execute(version) | ||
} |