Skip to content

Commit

Permalink
Added docs deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ozziest committed Dec 23, 2023
1 parent 79b25f1 commit 5aaf5ea
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/vitepress-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Deploy
on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
- run: cd docs && npm install --frozen-lockfile

- name: Build
run: npm docs:build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.ACCESS_TOKEN }}
publish_dir: docs/.vitepress/dist
external_repository: axe-api/validator-docs
publish_branch: main

0 comments on commit 5aaf5ea

Please sign in to comment.