Skip to content

Commit

Permalink
ci: 🔧 add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Aimerny committed May 5, 2024
1 parent 747b159 commit d6d97b5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: release

on:
push:
tags:
- 'v*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
git version
git clone "${{ github.event.repository.html_url }}" /home/runner/work/KookBot/KookBot
git checkout "${{ github.ref }}"
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.21'

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

0 comments on commit d6d97b5

Please sign in to comment.