Skip to content

Add build-docs.yml

Add build-docs.yml #1

Workflow file for this run

name: build-docs
on:
release:
types: [created]
push:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build docs
run: npm run docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/build
deploy:
permissions:
pages: write
id-toke: write

Check failure on line 26 in .github/workflows/build-docs.yml

View workflow run for this annotation

GitHub Actions / build-docs

Invalid workflow file

The workflow is not valid. .github/workflows/build-docs.yml (Line: 26, Col: 7): Unexpected value 'id-toke'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4