From 015633580cec74bfad460a1624345966eb06a3d5 Mon Sep 17 00:00:00 2001 From: subash Date: Tue, 9 Jul 2024 13:42:37 +1000 Subject: [PATCH] upgarde github actions --- .github/workflows/release.yml | 10 +++++----- .goreleaser.yaml | 5 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ba973d4..9e82fbd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,27 +13,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' diff --git a/.goreleaser.yaml b/.goreleaser.yaml index cb6eb42..8750606 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,4 @@ +version: 2 before: hooks: - go mod tidy @@ -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: | @@ -53,7 +54,7 @@ brews: nfpms: - id: safebox package_name: safebox - maintainer: Adikari + maintainer: Adikari description: "A Fast and Flexible secret manager built with love by adikari in Go." license: "MIT" formats: