From 0fef85c7b23dc9e43cc075c892546ba7d0499500 Mon Sep 17 00:00:00 2001 From: einaralex Date: Fri, 23 Aug 2024 02:22:22 +0000 Subject: [PATCH] docs: only run the doc deploy step on main --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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