Skip to content

docs: deploy in docs #18

docs: deploy in docs

docs: deploy in docs #18

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
push:
branches:
- main
defaults:
run:
working-directory: ./docs
defaults:

Check failure on line 14 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 14
run:
working-directory: ./docs
permissions:
contents: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Build with VitePress
run: |
npm run build
ls
- name: Deploy Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/dist