Skip to content

Commit 5eb2685

Browse files
committed
ci: deploy docs after release only
1 parent 516dd3e commit 5eb2685

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/publish-release.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,21 @@ jobs:
4242
git tag ${{ steps.resolve-release-version.outputs.version }}
4343
git push origin ${{ steps.resolve-release-version.outputs.version }}
4444
45+
- name: Deploy documentation
46+
id: deploy
47+
uses: cloudflare/wrangler-action@v3
48+
with:
49+
packageManager: pnpm
50+
workingDirectory: 'docs/tutorialkit.dev'
51+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
52+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
53+
command: pages deploy
54+
55+
- name: Deployment URL
56+
env:
57+
DEPLOYMENT_URL: ${{ steps.deploy.outputs.deployment-url }}
58+
run: echo $DEPLOYMENT_URL
59+
4560
prepare_cli_release:
4661
name: Prepare Release for CLI
4762
needs: [publish_release]

0 commit comments

Comments
 (0)