This commit is contained in:
parent
66744ddd10
commit
4525442251
3 changed files with 67 additions and 0 deletions
36
.forgejo/workflows/release.yml
Normal file
36
.forgejo/workflows/release.yml
Normal file
|
@ -0,0 +1,36 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue