Skip to content

Commit

Permalink
use goreleaser action
Browse files Browse the repository at this point in the history
  • Loading branch information
raulfdm committed Feb 11, 2024
1 parent 8f391ce commit 418de9e
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
name: Release
name: goreleaser

on:
push
# branches:
# - main
pull_request:
push:

concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: write

jobs:
release:
name: Release
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
-
name: Checkout
uses: actions/checkout@v4

- name: Setup Go
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v4
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
go-version: 1.21.7

- name: Install dependencies
run: go get .

- name: Install goreleaser
run: go install github.com/goreleaser/goreleaser@latest

- name: Release
run: goreleaser release --clean
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 418de9e

Please sign in to comment.