Fixed Deploy workflow
Some checks failed
Build and Deploy VitePress / build-and-deploy (push) Has been cancelled
Some checks failed
Build and Deploy VitePress / build-and-deploy (push) Has been cancelled
This commit is contained in:
parent
0fde7b6b3e
commit
90fe5b5e2d
1 changed files with 0 additions and 0 deletions
|
|
@ -1,38 +0,0 @@
|
|||
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 /srv/site
|
||||
run: |
|
||||
echo "Cleaning existing site..."
|
||||
rm -rf /srv/retards-site/*
|
||||
|
||||
echo "Copying new build..."
|
||||
cp -r .vitepress/dist/* /srv/retards-site/
|
||||
|
||||
echo "Deployment complete."
|
||||
Loading…
Add table
Add a link
Reference in a new issue