From 05b286e688a32eed1f05a7e610c42224090a4213 Mon Sep 17 00:00:00 2001 From: julia ferraioli Date: Mon, 15 Jul 2024 08:09:17 -0700 Subject: [PATCH] Fix deploy GH action --- .github/workflows/hugo.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index 4d25066..5d82619 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -28,7 +28,7 @@ jobs: extended: true - name: Build Main - if: github.ref == 'refs/heads/main' && github.repository_owner == 'tlaplus' + if: github.repository_owner == 'tlaplus' run: hugo --baseURL=$PROD_SITE --minify - name: Build Dev @@ -37,6 +37,7 @@ jobs: - name: Deploy uses: peaceiris/actions-gh-pages@v3 + if: github.ref == 'refs/heads/main' with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./public