From 71f29875593148932f5fb8b0088bb22d16b72107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemen=20Tu=C5=A1ar?= Date: Sun, 28 Apr 2024 20:09:40 +0100 Subject: [PATCH] :construction_worker: link publish & docs CI --- .github/workflows/documentation.yml | 3 +++ .github/workflows/publish.yml | 10 +++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index ee29b4f..40829f8 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -2,6 +2,9 @@ name: Documentation on: workflow_dispatch: + branches: + - master + workflow_call: permissions: contents: write diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b2f2c45..6fee32d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,9 +13,9 @@ jobs: test: uses: ./.github/workflows/test.yml secrets: inherit - build-and-publish: + publish: needs: test - name: "Build & Publish" + name: "Publish" runs-on: ubuntu-latest environment: name: pypi @@ -92,4 +92,8 @@ jobs: if: ${{ always() }} run: | rm -rf dist - rm -rf $CHANGELOG_PATH \ No newline at end of file + rm -rf $CHANGELOG_PATH + documentation: + uses: ./.github/workflows/documentation.yml + needs: publish + secrets: inherit \ No newline at end of file