@@ -15,18 +15,12 @@ jobs:
|
|||||||
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 .
|
||||||
git checkout ${{ gitea.sha }}
|
git checkout ${{ gitea.sha }}
|
||||||
|
|
||||||
- name: Build Docusaurus site in container
|
- name: Build Docusaurus site
|
||||||
run: |
|
run: cd docs-site && npm ci && npm run build
|
||||||
docker run --rm \
|
|
||||||
-v "${{ gitea.workspace }}":/workspace \
|
|
||||||
-w /workspace/docs-site \
|
|
||||||
node:20 \
|
|
||||||
bash -lc "npm ci && npm run build"
|
|
||||||
|
|
||||||
- name: Deploy to /srv/ssd/www/docusaurus
|
- name: Deploy to /srv/ssd/www/docusaurus
|
||||||
run: |
|
run: |
|
||||||
mkdir -p /srv/www/docusaurus
|
rm -rf /deploy/*
|
||||||
rm -rf /srv/www/docusaurus/*
|
cp -r docs-site/build/* /deploy/
|
||||||
cp -r docs-site/build/* /srv/www/docusaurus/
|
echo "Deployed files:"
|
||||||
echo "Deployed files in /srv/www/docusaurus:"
|
ls /deploy | head -20
|
||||||
ls -R /srv/www/docusaurus | head -40
|
|
||||||
Reference in New Issue
Block a user