Files
portfolio/.gitea/workflows/deploy.yml
T
unkn0wn 5b65c52726
Deploy Documentation / check-and-deploy (push) Successful in 13s
fix: adding footer translation and correcting pipeline step name
2026-06-24 18:57:07 +02:00

37 lines
787 B
YAML

name: Deploy Documentation
on:
push:
branches:
- main
workflow_dispatch:
jobs:
check-and-deploy:
runs-on: host
steps:
- name: Install Node.js requirements for Actions
run: |
if ! command -v node &> /dev/null; then
apk add --no-cache nodejs npm
fi
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Build website
run: npm run build
- name: Deploy to Apache volume
run: |
find /var/www/louis-potevin.dev -mindepth 1 -delete
cp -r dist/. /var/www/louis-potevin.dev/
chmod -R 755 /var/www/louis-potevin.dev/