42 lines
996 B
YAML
42 lines
996 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
goreleaser:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
-
|
|
name: Set up Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: '>=1.25.1'
|
|
-
|
|
name: Run GoReleaser
|
|
uses: https://github.com/goreleaser/goreleaser-action@v6
|
|
with:
|
|
# 'latest', 'nightly', or a semver
|
|
version: '~> v0.0.2'
|
|
args: release --clean
|
|
-
|
|
name: Grab Changelog
|
|
id: changelog
|
|
run: |
|
|
echo "text=$(cat dist/CHANGELOG.md)" >> "$GITHUB_OUTPUT"
|
|
echo "text=$(cat dist/CHANGELOG.md)"
|
|
-
|
|
name: Release app
|
|
uses: actions/forgejo-release@v2.7.3
|
|
with:
|
|
direction: upload
|
|
#token: ${{ secrets.WRITE_TOKEN_TO_MYREPO }}
|
|
release-dir: dist
|
|
release-notes: ${{ steps.changelog.output.text }}
|