profilePage/.forgejo/workflows/release.yml
creations 4525442251
Some checks failed
Build & Release Bun App / release (push) Failing after 4s
testing forg runners
2025-04-10 05:40:25 -04:00

36 lines
830 B
YAML

name: Build & Release Bun App
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: docker
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Bun
run: |
curl -fsSL https://bun.sh/install | bash
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
bun install
- name: Build Bun app
run: |
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
bun run build
- name: Archive dist folder
run: |
tar -czf bun-app.tar.gz ./dist
- name: Upload release asset to Forgejo
uses: https://code.forgejo.org/actions/upload-release-asset@v1
with:
tag: ${{ github.ref_name }}
file: bun-app.tar.gz