Skip to content

Commit

Permalink
ci(general): get git tags
Browse files Browse the repository at this point in the history
  • Loading branch information
andreszorro committed Mar 5, 2024
1 parent 467d4a8 commit 5eed75e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,19 @@ jobs:
run: |
bun install
bun test:ci
- name: Get Previous tag
id: previoustag
uses: WyriHaximus/github-action-get-previous-tag@v1
with:
fallback: 0.0.1
- name: Create binary and release files # FIXME: Bun issue with bin path
if: startsWith(github.ref, 'refs/tags/')
run: |
mkdir ./dist
bun build ./lib/main.ts --compile --outfile ./dist/scfz
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)
bun changelog --file dist/changelog.txt --tag v${{ steps.previoustag.outputs.tag }}
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit 5eed75e

Please sign in to comment.