Compare commits
2 commits
9a1d53f7d7
...
a7b4eaa6a6
Author | SHA1 | Date | |
---|---|---|---|
|
a7b4eaa6a6 | ||
|
61980a8e12 |
24
.forgejo/workflows/build.yaml
Normal file
24
.forgejo/workflows/build.yaml
Normal 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
|
|
@ -1,6 +0,0 @@
|
||||||
on: [push]
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: self-hosted
|
|
||||||
steps:
|
|
||||||
- run: echo it werkz!
|
|
Loading…
Reference in a new issue