33 lines
795 B
YAML
33 lines
795 B
YAML
|
name: goreleaser
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
tags:
|
||
|
- '*'
|
||
|
|
||
|
permissions:
|
||
|
contents: write
|
||
|
|
||
|
jobs:
|
||
|
goreleaser:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Install syft
|
||
|
run: curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v3
|
||
|
with:
|
||
|
fetch-depth: 0
|
||
|
- name: Set up Golang
|
||
|
uses: actions/setup-go@v3
|
||
|
with:
|
||
|
go-version: '1.20.5'
|
||
|
- name: Run GoReleaser
|
||
|
uses: https://github.com/goreleaser/goreleaser-action@v4
|
||
|
with:
|
||
|
distribution: goreleaser
|
||
|
version: latest
|
||
|
args: release --clean
|
||
|
env:
|
||
|
GORELEASER_FORCE_TOKEN: 'gitea'
|
||
|
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|