diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 89281a6..ce33b13 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 \ No newline at end of file + 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 }}