mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-04-18 05:47:31 -04:00
* docs: init project docs: design content header sticky docs: content docs: update starting guide docs: corrections docs: oidc, sso & more feat: landing page style: card design style: colors style: zerobyte logo style: corner content style: docs cards ci(docs): auto deploy to cloudflare docs: 3-2-1 strategy * fix: anchor links * style: refactor landing hero * feat: og * chore: fix ci * ci: build docs before publishing
43 lines
745 B
YAML
43 lines
745 B
YAML
name: Docs deploy
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "docs/**"
|
|
|
|
jobs:
|
|
deploy:
|
|
name: Deploy docs
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Install dependencies
|
|
uses: "./.github/actions/install-dependencies"
|
|
with:
|
|
workingDirectory: docs
|
|
|
|
- name: Build docs
|
|
working-directory: docs
|
|
run: bun run build
|
|
|
|
- name: Build and deploy docs
|
|
uses: cloudflare/wrangler-action@v3
|
|
with:
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
|
workingDirectory: docs
|
|
|
|
|
|
|
|
|
|
|
|
|