Skip to content

Commit

Permalink
Create release_build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
douglaslim committed Feb 29, 2024
1 parent 0582969 commit 135c458
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
push:
tags:
- "v*"
jobs:
# the workflow can contain other jobs, such as linting, testing, etc.
release:
runs-on: ubuntu-latest
steps:
# run git checkout
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

# setup go
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21.x

# run goreleaser
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --clean
distribution: goreleaser
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 135c458

Please sign in to comment.