forked from stackblitz/tutorialkit
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (25 loc) · 797 Bytes
/
publish-docs.yaml
File metadata and controls
30 lines (25 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This is for publishing documentation manually.
# During release `publish-release.yaml` publishes docs automatically.
name: Publish Documentation
on:
workflow_dispatch:
jobs:
publish_docs:
name: Publish documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup-and-build
- name: Build docs
run: pnpm run docs:build
- name: Deploy documentation
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: tutorialkit-docs-page
workingDirectory: 'docs/tutorialkit.dev'
directory: dist