Skip to content

Commit

Permalink
Merge pull request #95 from jacobbednarz/update-release-tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed Sep 12, 2022
2 parents 7e460a3 + 7706e63 commit ecfb7b3
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release
on:
push:
tags:
- '*'
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ^1.18
- name: Run GoReleaser
uses: goreleaser/[email protected]
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: macauley/action-homebrew-bump-cask@v1
with:
token: ${{ secrets.HOMEBREW_UPDATER_PAT }}
tap: jacobbednarz/tap
cask: cf-vault
tag: ${{ github.ref }}
revision: ${{ github.sha }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.envrc
build/*
dist/*
21 changes: 21 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
builds:
- env:
- CGO_ENABLED=0
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- -s -w -X github.com/jacobbednarz/cf-vault/cmd.Rev={{ .Version }}
goos:
- darwin
- freebsd
- linux
- windows
archives:
- format: zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
algorithm: sha256
changelog:
skip: true

0 comments on commit ecfb7b3

Please sign in to comment.