feat(release): also release on github
This commit is contained in:
parent
ae7b134be5
commit
dd363ecde2
2 changed files with 82 additions and 0 deletions
34
.github/workflows/release.yml
vendored
Normal file
34
.github/workflows/release.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
name: "release"
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: "release"
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
|
||||
# checkout repo
|
||||
- name: "checkout"
|
||||
uses: "actions/checkout@v4"
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
# setup go
|
||||
- name: "set up go"
|
||||
uses: "actions/setup-go@v5"
|
||||
with:
|
||||
go-version: "stable"
|
||||
|
||||
# run goreleaser
|
||||
- name: "run goreleaser"
|
||||
uses: "goreleaser/goreleaser-action@v5"
|
||||
with:
|
||||
version: "v2.8.2"
|
||||
args: "release --clean --config ./.gitlab/.goreleaser.yaml"
|
||||
env:
|
||||
GITHUB_TOKEN: '${{ secrets.GORELEASER_GITHUB_TOKEN }}'
|
||||
Loading…
Add table
Add a link
Reference in a new issue