build: publish workflow

This commit is contained in:
Anton
2023-12-01 00:31:11 +05:00
parent 9e9234fa53
commit b25ec0908b
3 changed files with 50 additions and 1 deletions

32
.github/workflows/publish.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: publish
on:
push:
tags:
- "*"
workflow_dispatch:
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "stable"
- name: Install dependencies
run: go get .
- name: Release and publish
uses: goreleaser/goreleaser-action@v4
with:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}