Skip to content

Commit 3e7e6cb

Browse files
authored
ci: deploy docs after release only (#288)
1 parent e3b90f5 commit 3e7e6cb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/publish-release.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,19 @@ jobs:
4242
git tag ${{ steps.resolve-release-version.outputs.version }}
4343
git push origin ${{ steps.resolve-release-version.outputs.version }}
4444
45+
- name: Build docs
46+
run: pnpm run docs:build
47+
48+
- name: Deploy documentation
49+
uses: cloudflare/pages-action@v1
50+
with:
51+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
52+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
53+
projectName: tutorialkit-docs-page
54+
workingDirectory: 'docs/tutorialkit.dev'
55+
directory: dist
56+
packageManager: pnpm
57+
4558
prepare_cli_release:
4659
name: Prepare Release for CLI
4760
needs: [publish_release]

0 commit comments

Comments
 (0)