Publish Documentation #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is for publishing documentation manually. | ||
# During release `publish-release.yaml` publishes docs automatically. | ||
name: Publish Documentation | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
publish_docs: | ||
Check failure on line 9 in .github/workflows/publish-docs.yaml
|
||
name: Publish documentation | ||
needs: [publish_release] | ||
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 |