From 4a8e4d983b9e644f073e266d3395db2f4ee541c8 Mon Sep 17 00:00:00 2001 From: Krypton Date: Sun, 10 Nov 2024 15:23:10 +0100 Subject: [PATCH] fix: Use Node.js 18 --- .github/workflows/deploy_documentation.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy_documentation.yml b/.github/workflows/deploy_documentation.yml index 86ca097..215b4e8 100644 --- a/.github/workflows/deploy_documentation.yml +++ b/.github/workflows/deploy_documentation.yml @@ -14,11 +14,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout source code - uses: actions/checkout@master - - name: Deploy Docusaurus documentation - uses: redkubes/docusaurus-deploy-action@v1.2 + uses: actions/checkout@v2 + - name: Setup Node.js + uses: actions/setup-node@v2 with: - source-folder: documentation - git-user: kkrypt0nn - git-password: ${{ secrets.PAT }} - deployment-branch: gh-pages + node-version: 18 + - name: Install dependencies + run: npm install + - name: Build documentation + run: npm run build + - name: Deploy to GitHub pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.PAT }} + publish_dir: ./documentation/gitbuild