Skip to content

Commit

Permalink
ci: deploy docs after release only (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio authored Aug 28, 2024
1 parent e3b90f5 commit 3e7e6cb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@ jobs:
git tag ${{ steps.resolve-release-version.outputs.version }}
git push origin ${{ steps.resolve-release-version.outputs.version }}
- 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
packageManager: pnpm

prepare_cli_release:
name: Prepare Release for CLI
needs: [publish_release]
Expand Down

0 comments on commit 3e7e6cb

Please sign in to comment.