mirror of
https://github.com/lbr77/blog-astro.git
synced 2026-06-06 13:41:41 +00:00
44 lines
826 B
YAML
44 lines
826 B
YAML
name: Frontend Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: frontend-build-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
ASTRO_TELEMETRY_DISABLED: '1'
|
|
|
|
jobs:
|
|
build:
|
|
name: Build frontend
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: 1.3.11
|
|
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Build frontend
|
|
run: bun run build
|
|
|
|
- name: Upload build output
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: frontend-build-${{ github.run_id }}
|
|
path: |
|
|
dist
|
|
.vercel/output
|
|
if-no-files-found: error
|