Skip to content

Commit

Permalink
ci: main docs deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Jan 11, 2025
1 parent 29c9cf3 commit 6c547ec
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy `main` docs

on:
push:
branches:
- main

jobs:
deploy-docs:
name: Deploy docs
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4

- name: Build
run: npm ci && npm run build
working-directory: docs

- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy docs/.vitepress/dist --project-name=blink-cmp-main

0 comments on commit 6c547ec

Please sign in to comment.