From 51b9e3773e4699d273d550b058c7d4e767d300b4 Mon Sep 17 00:00:00 2001 From: Camille <78221213+clatapie@users.noreply.github.com> Date: Mon, 29 Apr 2024 17:35:25 +0200 Subject: [PATCH] maint: deploying documentation when code is push to `main` --- .github/workflows/ci_cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 861055dd..00396f14 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -217,7 +217,7 @@ jobs: if compgen -G './logs-build-docs/*.out' > /dev/null ;then for f in ./logs-build-docs/*.out; do echo "::group:: Output file $f" && cat $f && echo "::endgroup::" ; done; fi release: - if: github.event_name == 'push' && contains(github.ref, 'refs/tags') + if: github.event_name == 'refs/heads/main' && !contains(github.ref, 'refs/tags') needs: [style, doc-build] #docs-style runs-on: ubuntu-latest steps: