Skip to content

fix: Run node installer only on docs folder #401

fix: Run node installer only on docs folder

fix: Run node installer only on docs folder #401

Workflow file for this run

name: Deploy Docs to GitHub Pages
on:
push:
branches: [main, docs]
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v4
working-directory: ./docs

Check failure on line 30 in .github/workflows/deploy-docs.yml

View workflow run for this annotation

GitHub Actions / Deploy Docs to GitHub Pages

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-docs.yml (Line: 30, Col: 9): Unexpected value 'working-directory'
with:
node-version: 20
cache: npm
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
working-directory: ./docs
run: npm ci
- name: Build with VitePress
working-directory: ./docs
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4