Skip to content

Commit

Permalink
github release action
Browse files Browse the repository at this point in the history
  • Loading branch information
latonz committed Dec 21, 2021
1 parent 83894d8 commit 1569d9b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 16 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: goreleaser

on:
push:
branches:
- 'master'
tags:
- 'v*'

permissions:
contents: write
packages: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.13
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 0 additions & 16 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,6 @@ archives:
darwin: macos
amd64: x86_64

signs:
- signature: "${artifact}_macos.dmg"
ids:
- macos
cmd: gon
args:
- .gon.hcl
artifacts: all

snapshot:
name_template: "{{ .Tag }}-next"

Expand All @@ -45,11 +36,4 @@ release:
ids:
- none
extra_files:
- glob: ./dist/gon_macos.dmg
- glob: ./dist/gon_macos.zip

brews:
- github:
owner: mitchellh
name: homebrew-gon
description: "Sign, notarize, and package macOS CLI tools and applications written in any language."

0 comments on commit 1569d9b

Please sign in to comment.