Skip to content

Commit

Permalink
update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
devbv committed Aug 12, 2024
1 parent 0459021 commit f756c16
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/release-binary.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: Release Binaries

on:
release:
types: [ published ]
push:
# Sequence of patterns matched against refs/tags
tags:
- "v[0-9]+.[0-9]+.[0-9]+*" # Push events to matching v*, i.e. v1.0, v20.15.10, v1.2.3-hotfix, etc.

permissions:
contents: write # for goreleaser/goreleaser-action to create a GitHub release

jobs:
binary:
Expand All @@ -14,19 +19,22 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.21

- name: Checkout
uses: actions/checkout@v3
with:
path: ${{ env.working-directory }}
fetch-depth: 0

- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |-
echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
workdir: ${{ env.working-directory }}
version: 1.13.0
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
args: release --rm-dist

0 comments on commit f756c16

Please sign in to comment.