Restructure and deploy #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Deploy Payavel Docs | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'payavel/**/*' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'payavel/**/*' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: Build & Deploy | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Install VitePress | |
run: npm install --dev | |
- name: Build Orchestration Docs | |
run: npm run payavel:build | |
- name: Deploy to Cloudflare Pages | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
command: pages deploy payavel/.vitepress/dist --project-name=payavel |