Skip to content

Commit

Permalink
upgarde github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
adikari committed Jul 9, 2024
1 parent 8500b00 commit c2624b9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: goreleaser

on:
push:
tags:
- "v*"
on: push
# tags:
# - "v*"

permissions:
contents: write
Expand All @@ -13,27 +12,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '>=1.19.1'
cache: true

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
Expand Down
5 changes: 3 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
before:
hooks:
- go mod tidy
Expand Down Expand Up @@ -35,7 +36,7 @@ changelog:
brews:
- name: safebox
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
folder: Formula
directory: Formula
description: "A Fast and Flexible secret manager built with love by adikari in Go."
license: "MIT"
test: |
Expand All @@ -53,7 +54,7 @@ brews:
nfpms:
- id: safebox
package_name: safebox
maintainer: Adikari <me@subash.com.au>
maintainer: Adikari <me@subash.tech>
description: "A Fast and Flexible secret manager built with love by adikari in Go."
license: "MIT"
formats:
Expand Down

0 comments on commit c2624b9

Please sign in to comment.