forgot HappyEyeballsCallback #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy documentation to GitHub Pages | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: pages | |
cancel-in-progress: true | |
env: | |
NODE_OPTIONS: --max-old-space-size=16384 | |
DOCUSAURUS_SSR_CONCURRENCY: 10 | |
jobs: | |
deploy: | |
runs-on: self-hosted | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Restore docbuild cache | |
uses: actions/cache/restore@v3 | |
with: | |
path: | | |
node_modules/.cache/ | |
.docusaurus/ | |
key: docbuild-${{ github.run_id }} | |
enableCrossOsArchive: true | |
restore_keys: | | |
docbuild | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build | |
run: pnpm run ci | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: build/ | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 | |
- name: Save docbuild cache | |
uses: actions/cache/save@v3 | |
with: | |
path: | | |
node_modules/.cache/ | |
.docusaurus/ | |
key: docbuild-${{ github.run_id }} | |
enableCrossOsArchive: true | |
restore_keys: | | |
docbuild |