build: Added build workflow

This commit is contained in:
Simeon Radivoev 2026-01-23 04:59:54 +02:00
parent 3e90445fab
commit 0fc881c839
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A

View file

@ -0,0 +1,30 @@
name: Build and Upload Canary
on:
# Allows you to run this manually from the Forgejo UI
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: https://github.com/oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build Canary
run: bun run build:canary
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: canary-build
# Replace 'dist' with your actual output folder (e.g., 'out' or 'build')
path: artifacts/
retention-days: 7