Skip to content

Commit

Permalink
chore: only build and deploy docs on new release
Browse files Browse the repository at this point in the history
  • Loading branch information
einaralex committed Sep 6, 2024
1 parent 3e5d6f4 commit f10f66d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ jobs:
run: pnpm build

- name: Generate Documentation
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' && needs.release-please.outputs.releases_created
run: pnpm run generate-docs

- name: Commit and Push Documentation
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' && needs.release-please.outputs.releases_created
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
Expand All @@ -70,7 +70,7 @@ jobs:
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' && needs.release-please.outputs.releases_created
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./apps/developer/build
Expand Down

0 comments on commit f10f66d

Please sign in to comment.