fix(docs): fix overflowing issue #7
Workflow file for this run
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: Publish docs | |
on: | |
push: | |
branches: | |
- feature/first-docs | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "yarn" | |
registry-url: "https://registry.npmjs.org" | |
- run: yarn install --immutable | |
- uses: nrwl/nx-set-shas@v4 | |
- if: github.ref != 'refs/heads/main' | |
run: git branch --track main origin/main | |
- run: yarn nx affected -t build --parallel=3 | |
- uses: actions/configure-pages@v4 | |
with: | |
static_site_generator: next | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: packages/docs/out | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Publish to GitHub Pages 🚀 | |
id: deployment | |
uses: actions/deploy-pages@v4 |