build: Added build workflow
This commit is contained in:
parent
3e90445fab
commit
0fc881c839
1 changed files with 30 additions and 0 deletions
30
.forgejo/workflows/build.yml
Normal file
30
.forgejo/workflows/build.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue