mirror of
https://github.com/Finb/Bark.git
synced 2025-12-08 21:36:01 +00:00
Add Cloudflare Pages deployment workflow
This commit is contained in:
parent
7896a82f0b
commit
479b313c47
27
.github/workflows/deploy-docs.yaml
vendored
Normal file
27
.github/workflows/deploy-docs.yaml
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: Deploy Docs to Cloudflare Pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths:
|
||||||
|
- 'docs/**'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
deployments: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Deploy to Cloudflare Pages
|
||||||
|
uses: cloudflare/wrangler-action@v3
|
||||||
|
with:
|
||||||
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
|
command: pages deploy docs --project-name=bark-docs
|
||||||
Loading…
x
Reference in New Issue
Block a user