31 lines
642 B
YAML
31 lines
642 B
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
tags: ["*"]
|
|
|
|
env:
|
|
GIT_SSL_NO_VERIFY: true
|
|
GOPRIVATE: git.lethalbits.com/*
|
|
GONOSUMCHECK: git.lethalbits.com/*
|
|
GOINSECURE: git.lethalbits.com/*
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
goreleaser:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
- run: go install github.com/goreleaser/goreleaser/v2@latest
|
|
- run: goreleaser release --clean
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GORELEASER_FORCE_TOKEN: "gitea"
|