name: Deploy to GitHub Pages on: push: branches: - main paths-ignore: - '**/README.md' - '**/.github/ISSUE_TEMPLATE/**' jobs: build: name: Build Docusaurus runs-on: ubuntu-latest steps: - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: fetch-depth: 0 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version: 18 cache: yarn - name: Install dependencies run: yarn install --frozen-lockfile - name: Build website env: NODE_OPTIONS: "--max_old_space_size=10240" run: yarn build --no-minify - name: Upload Build Artifact uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3 with: path: build deploy: name: Deploy to GitHub Pages needs: build permissions: pages: write id-token: write environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4