Skip to content

Commit

Permalink
Merge pull request #1 from cobbinma/release-ci
Browse files Browse the repository at this point in the history
ci: add release step
  • Loading branch information
cobbinma authored Jun 21, 2023
2 parents 075100f + 6f4b162 commit 057a895
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: release

on:
push:
tags:
- "*"

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
- uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 057a895

Please sign in to comment.