feat(release): Added forgejo release action
Some checks failed
ci / goreleaser (push) Failing after 6s
Some checks failed
ci / goreleaser (push) Failing after 6s
This commit is contained in:
parent
a6a41e8d91
commit
8b197ea9f5
1 changed files with 20 additions and 4 deletions
24
.github/workflows/release.yaml
vendored
24
.github/workflows/release.yaml
vendored
|
|
@ -1,7 +1,9 @@
|
|||
name: ci
|
||||
|
||||
on:
|
||||
tag:
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
|
||||
jobs:
|
||||
goreleaser:
|
||||
|
|
@ -14,11 +16,25 @@ jobs:
|
|||
fetch-depth: 0
|
||||
-
|
||||
name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
uses: actions/setup-go@v6
|
||||
-
|
||||
name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
uses: https://github.com/goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
# 'latest', 'nightly', or a semver
|
||||
version: '~> v0.0.2'
|
||||
args: release --clean
|
||||
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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue