diff --git a/.github/workflows/vitepress-deploy.yml b/.github/workflows/vitepress-deploy.yml new file mode 100644 index 0000000..046b832 --- /dev/null +++ b/.github/workflows/vitepress-deploy.yml @@ -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