Skip to content

Rework documentation #13

Rework documentation

Rework documentation #13

Workflow file for this run

# .github/workflows/preview.yml
name: Deploy PR previews
concurrency: preview-${{ github.ref }}
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
jobs:
build-docs:
uses: ./.github/workflows/build-docs.yml

Check failure on line 14 in .github/workflows/preview-docs.yml

View workflow run for this annotation

GitHub Actions / Deploy PR previews

Invalid workflow file

The workflow is not valid. .github/workflows/preview-docs.yml (Line: 14, Col: 11): Secret GH_TOKEN is required, but not provided while calling. .github/workflows/preview-docs.yml (Line: 16, Col: 21): Invalid secret, GITHUB_TOKEN is not defined in the referenced workflow.
secrets:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN}}"
deploy-preview:
runs-on: ubuntu-latest
needs: build-docs
steps:
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: "3.10"
cache: true
- name: Install dependencies
run: pdm install
- name: Build docs
run: pdm docs
if: github.event.action != 'closed'
- uses: rossjrw/pr-preview-action@v1
with:
source-dir: docs/build
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto
pages-base-url: chipflow-docs.docs.chipflow-infra.com