diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index b408b44..b19fb78 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -26,7 +26,7 @@ jobs: uv-extra: "--all-extras" build-deploy-mkdocs: - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' name: Build MkDocs Documentation runs-on: ubuntu-latest needs: setup @@ -58,7 +58,7 @@ jobs: docs-version: ${{ steps.version.outputs.version }} create-release: - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' name: Create Release runs-on: ubuntu-latest needs: build-deploy-mkdocs diff --git a/{{ cookiecutter.project_name }}/.github/workflows/workflow.yaml b/{{ cookiecutter.project_name }}/.github/workflows/workflow.yaml index baebbed..51be3d3 100644 --- a/{{ cookiecutter.project_name }}/.github/workflows/workflow.yaml +++ b/{{ cookiecutter.project_name }}/.github/workflows/workflow.yaml @@ -45,7 +45,7 @@ jobs: src-exclude: ${{'{{'}} env.SRC_PROJECT_TESTS {{'}}'}} build-deploy-mkdocs: - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' name: Build MkDocs Documentation runs-on: ubuntu-latest needs: setup-lint-test @@ -77,7 +77,7 @@ jobs: docs-version: ${{'{{'}} steps.version.outputs.version {{'}}'}} create-release: - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' name: Create Release runs-on: ubuntu-latest needs: build-deploy-mkdocs