Skip to content

Commit

Permalink
ci: deploy docs after release only
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Aug 28, 2024
1 parent 516dd3e commit 90b544a
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:
packageManager: pnpm
workingDirectory: 'docs/tutorialkit.dev'
directory: 'dist'
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy

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

0 comments on commit 90b544a

Please sign in to comment.