mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-15 14:47:30 +00:00
29c675ba17
This PR changes the docs path from `/docs2` to just `/docs` in preparation for release. Release Notes: - N/A
35 lines
785 B
YAML
35 lines
785 B
YAML
name: Deploy Docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy-docs:
|
|
name: Deploy Docs
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
clean: false
|
|
|
|
- name: Setup mdBook
|
|
uses: peaceiris/actions-mdbook@v2
|
|
with:
|
|
mdbook-version: "0.4.37"
|
|
|
|
- name: Build book
|
|
run: |
|
|
set -euo pipefail
|
|
mkdir -p target/deploy
|
|
mdbook build ./docs --dest-dir=../target/deploy/docs/
|
|
|
|
- name: Deploy
|
|
uses: cloudflare/wrangler-action@v3
|
|
with:
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
|
command: pages deploy target/deploy --project-name=docs
|