Skip to content

ci: changed to maintained github release action #2

ci: changed to maintained github release action

ci: changed to maintained github release action #2

Workflow file for this run

name: Build and Release
on:
push:
tags:
- "v*.*.*"
jobs:
build-and-release:
name: Build and Publish Release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: "latest"
- name: Install dependencies
run: bun install
- name: Build the project
run: bun run build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: dist
path: dist/
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
artifacts: dist
tag: ${{ github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true