Skip to content

Commit

Permalink
ci: add automatic release
Browse files Browse the repository at this point in the history
  • Loading branch information
WIttyJudge committed Nov 27, 2024
1 parent 8608ae6 commit a7a0e77
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: release

on:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.22.0

- name: Checkout code
uses: actions/checkout@v4

- name: Build and Release
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a7a0e77

Please sign in to comment.