diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e287331f..606e404e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,9 +52,11 @@ jobs: run: pnpm build - name: Generate Documentation + if: github.ref == 'refs/heads/main' run: pnpm run generate-docs - name: Commit and Push Documentation + if: github.ref == 'refs/heads/main' run: | git config --global user.name "GitHub Actions" git config --global user.email "actions@github.com" @@ -68,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' with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./apps/developer/build