ol_site/.forgejo/workflows/build.yaml
aart1256 612ec77e46
Some checks failed
/ deploy (push) Failing after 8s
"www-data is already the user owner"
2025-08-28 18:10:12 -04:00

23 lines
629 B
YAML

on: [push]
jobs:
deploy:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build site
run: npm run build
- name: Deploy to web server
run: |
find /var/www/otomata/* -path '/var/www/otomata/demos' -prune -o -exec rm -rf {} +
cp -r _site/* /var/www/otomata/
chmod -R 755 /var/www/otomata