Skip to content

Commit

Permalink
implement goreleaser with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
karasz committed May 13, 2021
1 parent e242661 commit 3bc2d4e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release Go project

on:
push:
tags:
- "*" # 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.16
uses: actions/setup-go@v2
with:
go-version: 1.16
id: go

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@master
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var rootCmd = &cobra.Command{
Use: "gomesh",
Short: "Generate Wireguard Mesh VPN configurations",
Long: "This little tool will generate and manage configuration files for Wireguard Mesh VPNs.",
Version: "0.1-dev",
Version: "0.0.1",
}

// Execute adds all child commands to the root command and sets flags appropriately.
Expand Down

0 comments on commit 3bc2d4e

Please sign in to comment.