From 59efdb9a71103ecac877648b7bf878cb8ba47ecb Mon Sep 17 00:00:00 2001 From: Donny F Date: Sat, 7 Sep 2024 09:24:57 -0500 Subject: [PATCH] Create deploy.yml --- .github/workflows/deploy.yml | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..2b813ba7 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,37 @@ +name: Deploy Docusaurus to GitHub Pages + +on: + push: + branches: + - main # Change this if your default branch is different + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Navigate to wiki directory + run: cd wiki + + - name: Install Node.js + uses: actions/setup-node@v2 + with: + node-version: '16' # Adjust this based on your Docusaurus version + + - name: Install dependencies + run: | + cd wiki + npm install + + - name: Build Docusaurus site + run: | + cd wiki + npm run build + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./wiki/build