Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
Comment thread
ricardozanini marked this conversation as resolved.
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build site
run: npm run build

- name: Check build output
run: |
if [ ! -d "dist" ]; then
echo "Error: dist directory not found"
exit 1
fi
echo "Build successful! Generated files:"
ls -lh dist/

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: site-build
path: dist/
retention-days: 7