From 74b7a4e72b102bec2fd2328a816c9d44c1ed6572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Zorro?= Date: Tue, 5 Mar 2024 15:17:11 -0500 Subject: [PATCH] ci(general): added generated release notes --- .github/workflows/main.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index f64afbf..2549898 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -22,16 +22,21 @@ jobs: run: | bun install bun test:ci - - name: Create binary + - name: Create binary and release files # FIXME: Bun issue with bin path + if: startsWith(github.ref, 'refs/tags/') run: | bun build ./lib/main.ts --compile --outfile ./dist/scfz - - name: Verify binary version - run: ./lib/scfz --version + tar -czvf ./dist/scfz.tar.gz ./lib/scfz + ./lib/scfz --version + bun changelog --file dist/changelog.txt --tag $(git tag --sort=v:refname | grep -v beta | tail -n 1) - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: - draft: ${{contains(github.ref, '-beta')}} - files: | + draft: true + prerelease: ${{contains(github.ref, '-beta')}} + body_path: ./dist/changelog.txt + files: | # FIXME: Bun issue with bin path ./lib/scfz + ./dist/scfz.tar.gz LICENSE \ No newline at end of file