From 45c75e96cbf3b50892c8bf0e3ac085ea524ba8f2 Mon Sep 17 00:00:00 2001 From: Janne Valkealahti Date: Tue, 18 Apr 2023 09:57:59 +0100 Subject: [PATCH] Dispatch docs deploy from ci - If artifact publish is ok, dispatch deploy-docs workflow for current branch. - Relates #166 --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5dffe3d..2cf426d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,3 +54,13 @@ jobs: ./gradlew build artifactoryPublish \ -PartifactoryUsername="$ARTIFACTORY_USERNAME" \ -PartifactoryPassword="$ARTIFACTORY_PASSWORD" + docs: + runs-on: ubuntu-latest + needs: [publish] + steps: + - uses: actions/checkout@v3 + - name: Dispatch (partial build) + if: github.ref_type == 'branch' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }}