diff --git a/.github/workflows/build_deploy_docs.yml b/.github/workflows/build_deploy_docs.yml new file mode 100644 index 00000000..b2abef0d --- /dev/null +++ b/.github/workflows/build_deploy_docs.yml @@ -0,0 +1,44 @@ +name: Build and deploy docs + +on: + push: + branches: [ "master" ] + +permissions: + contents: read + pages: write + id-token: write + +jobs: + build: + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + strategy: + matrix: + node-version: [22.x] + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: Build + run: | + npm install taffydb + npm install + grunt docs --force + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: 'docs/build' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4