From 4e4461d8f7ad11843bf05d9f102bd6b61582dff4 Mon Sep 17 00:00:00 2001 From: Alexander Koval Date: Tue, 14 Feb 2023 19:34:14 +0200 Subject: [PATCH] Trigger docs task on PR --- .github/workflows/build.yaml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d77de891d7..9a976de90d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -211,7 +211,6 @@ jobs: publish: needs: integ-tests if: | - always() && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest @@ -251,13 +250,7 @@ jobs: docs: needs: publish if: | - always() && - !contains(github.event.head_commit.message, '[skip docs]') && - github.event_name == 'push' && ( - startsWith(github.ref, 'refs/tags/v') || - github.ref == 'refs/heads/master' || - github.ref == 'refs/heads/docs' - ) + !contains(github.event.head_commit.message, '[skip docs]') runs-on: ubuntu-latest steps: - name: Checkout @@ -287,9 +280,21 @@ jobs: run: ./gradlew dokkaHtmlMultiModule $GRADLE_ARGS - name: Copy docs + if: | + github.event_name == 'push' && ( + startsWith(github.ref, 'refs/tags/v') || + github.ref == 'refs/heads/master' || + github.ref == 'refs/heads/docs' + ) run: ./gradlew gitPublishCopy $GRADLE_ARGS - name: Publish documentation + if: | + github.event_name == 'push' && ( + startsWith(github.ref, 'refs/tags/v') || + github.ref == 'refs/heads/master' || + github.ref == 'refs/heads/docs' + ) uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }}