diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..4ec212d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +name: Build Docusaurus + +on: + pull_request: + branches: + - '*' + push: + branches: + - '*' + +jobs: + + build_docs: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + + - name: Run download-docs script + run: | + chmod +x ./scripts/download-docs.sh + ./scripts/download-docs.sh + shell: bash + + - name: Install Docusaurus Dependencies + run: | + cd docusaurus + yarn install + + - name: Build Docusaurus Docs + run: | + cd docusaurus + yarn build diff --git a/scripts/download-docs.sh b/scripts/download-docs.sh old mode 100644 new mode 100755