Implement pipeline

This commit is contained in:
Kamil Patecki 2025-08-28 23:51:55 +02:00
parent 9b4879574c
commit 61980a8e12
2 changed files with 24 additions and 6 deletions

View file

@ -0,0 +1,24 @@
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: |
sudo rm -rf /var/www/otomata/*
sudo cp -r _site/* /var/www/otomata/
sudo chown -R www-data:www-data /var/www/otomata
sudo chmod -R 755 /var/www/otomata

View file

@ -1,6 +0,0 @@
on: [push]
jobs:
test:
runs-on: self-hosted
steps:
- run: echo it werkz!