From 63a6bfa1a307d500946faf103ac94904a7bd3378 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Thu, 21 Dec 2023 13:33:31 +0100 Subject: [PATCH] Stop publish workflow earlier --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8d760a2..c485a48 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,7 +11,8 @@ on: jobs: - test: + build-and-publish: + if: ${{ github.ref == 'refs/heads/main' }} runs-on: ubuntu-latest strategy: fail-fast: false @@ -31,7 +32,6 @@ jobs: run: | sphinx-build -M html . build - name: Publish gh-pages - if: ${{ github.ref == 'refs/heads/main' }} run: | cd build/html git init