Skip to content

Update publish-docs.yml #32

Update publish-docs.yml

Update publish-docs.yml #32

Workflow file for this run

on: [push, workflow_dispatch]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3
- name: PNPM
uses: pnpm/action-setup@v2
- name: Build
run: pnpm install && pnpm run build --filter @vrite/docs
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: vrite-docs
directory: apps/docs/dist