Enable footer links to break into multiple lines (#1278) #433
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 docs | |
on: | |
push: | |
branches: ["main"] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
actions: read | |
concurrency: | |
group: deploy-docs | |
cancel-in-progress: false | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# We need to fetch all tags to build versioned docs | |
fetch-depth: 0 | |
- name: Retrieve old versions of docs | |
run: ./util/scripts/build-versioned-docs.sh | |
- run: npm ci | |
working-directory: docs | |
- name: Build documentation | |
run: npm run build | |
working-directory: docs | |
- name: Disable Jykell | |
run: touch docs/build/.nojekyll | |
- name: Upload built documentation as artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: docs/build/ | |
deploy: | |
needs: build | |
runs-on: ubuntu-20.04 | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |