This commit is contained in:
@@ -9,6 +9,15 @@ jobs:
|
|||||||
runs-on: homelab
|
runs-on: homelab
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Bootstrap git and node
|
||||||
|
run: |
|
||||||
|
command -v git >/dev/null && command -v node >/dev/null && node --version | grep -q "v20" && exit 0
|
||||||
|
apt-get update -qq
|
||||||
|
apt-get install -y -qq git curl
|
||||||
|
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
||||||
|
apt-get install -y -qq nodejs
|
||||||
|
git --version && node --version && npm --version
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
run: |
|
run: |
|
||||||
git clone http://oauth2:${{ gitea.token }}@192.168.1.18:3000/${{ gitea.repository }}.git .
|
git clone http://oauth2:${{ gitea.token }}@192.168.1.18:3000/${{ gitea.repository }}.git .
|
||||||
@@ -19,8 +28,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy to /srv/ssd/www/docusaurus
|
- name: Deploy to /srv/ssd/www/docusaurus
|
||||||
run: |
|
run: |
|
||||||
mkdir -p /deploy
|
rm -rf /srv/www/docusaurus/*
|
||||||
rm -rf /deploy/*
|
cp -r docs-site/build/. /srv/www/docusaurus/
|
||||||
cp -r docs-site/build/* /deploy/
|
echo "Deployed:"
|
||||||
echo "Deployed files:"
|
ls /srv/www/docusaurus | head -20
|
||||||
ls /deploy | head -20
|
|
||||||
Reference in New Issue
Block a user