RetardsSite/.forgejo/workflows/deploy.yml
Malasaur 7ef692f467
All checks were successful
Build and Deploy VitePress / build-and-deploy (push) Successful in 27s
Fixed Deploy workflow part 3
2026-02-14 18:07:03 +01:00

41 lines
852 B
YAML

name: Build and Deploy VitePress
on:
push:
branches: [master]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- name: Build with VitePress
run: npm run site:build
- name: Deploy to retards-site
run: |
echo "Ensuring target directory exists..."
mkdir -p retards-site
echo "Cleaning existing site..."
rm -rf retards-site/*
echo "Copying new build..."
cp -r .vitepress/dist/* retards-site/
echo "Deployment complete."