diff --git a/.gitea/workflows/gitea-actions.yml b/.gitea/workflows/gitea-actions.yml index 0211dd5..c1be393 100644 --- a/.gitea/workflows/gitea-actions.yml +++ b/.gitea/workflows/gitea-actions.yml @@ -11,11 +11,17 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + run: | + git clone http://oauth2:${{ gitea.token }}@192.168.1.18:3000/${{ gitea.repository }}.git . + git checkout ${{ gitea.sha }} - name: Build Docusaurus site in container run: | - docker run --rm -v "${{ gitea.workspace }}":/workspace -w /workspace/docs-site node:20 bash -lc "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 run: | @@ -23,4 +29,4 @@ jobs: rm -rf /srv/www/docusaurus/* cp -r docs-site/build/* /srv/www/docusaurus/ echo "Deployed files in /srv/www/docusaurus:" - ls -R /srv/www/docusaurus | head -40 + ls -R /srv/www/docusaurus | head -40 \ No newline at end of file