Skip to content

Merge pull request #2 from eodash/preview-docs #9

Merge pull request #2 from eodash/preview-docs

Merge pull request #2 from eodash/preview-docs #9

Workflow file for this run

# .github/workflows/deploy_docs.yml
name: Deploy docs for main branch
on:
push:
branches:
- main
jobs:
deploy-preview:
runs-on: ubuntu-22.04
permissions:
contents: write
pages: write
pull-requests: write
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/checkout@v4
- run: |
npm install
npm run docs:build -- --base /${{ github.event.repository.name }}/
- uses: JamesIves/github-pages-deploy-action@v4
with:
folder: .vitepress/dist/
branch: gh-pages
clean-exclude: pr-preview
force: false