Skip to content

Commit 45a1508

Browse files
authored
chore: host og-image on tutorialkit.dev (#420)
1 parent b6d26f8 commit 45a1508

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/publish-docs.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This is for publishing documentation manually.
2+
# During release `publish-release.yaml` publishes docs automatically.
3+
name: Publish Documentation
4+
5+
on:
6+
workflow_dispatch:
7+
8+
jobs:
9+
publish_docs:
10+
name: Publish documentation
11+
needs: [publish_release]
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: ./.github/actions/setup-and-build
20+
21+
- name: Build docs
22+
run: pnpm run docs:build
23+
24+
- name: Deploy documentation
25+
uses: cloudflare/pages-action@v1
26+
with:
27+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
28+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
29+
projectName: tutorialkit-docs-page
30+
workingDirectory: 'docs/tutorialkit.dev'
31+
directory: dist
Loading

0 commit comments

Comments
 (0)