Release v0.0.1 #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Extract Tag and Commit Message Body | |
id: extract_info | |
run: | | |
TAG=$(git tag --points-at HEAD) | |
BODY=$(git show -s --format=%b) | |
echo "::set-output name=tag::$TAG" | |
echo "::set-output name=body::$BODY" | |
- name: Set up Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: 'latest' | |
- name: Install dependencies | |
run: bun install | |
- name: Generate Release Build | |
run: bun export | |
- name: Push release to GitHub | |
uses: "softprops/action-gh-release@v1" | |
with: | |
files: dist/* | |
tag_name: ${{ steps.extract_info.outputs.tag }} | |
body: ${{ steps.extract_info.outputs.body }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |