Skip to content

Commit 45c75e9

Browse files
committed
Dispatch docs deploy from ci
- If artifact publish is ok, dispatch deploy-docs workflow for current branch. - Relates #166
1 parent 07cd8fb commit 45c75e9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,13 @@ jobs:
5454
./gradlew build artifactoryPublish \
5555
-PartifactoryUsername="$ARTIFACTORY_USERNAME" \
5656
-PartifactoryPassword="$ARTIFACTORY_PASSWORD"
57+
docs:
58+
runs-on: ubuntu-latest
59+
needs: [publish]
60+
steps:
61+
- uses: actions/checkout@v3
62+
- name: Dispatch (partial build)
63+
if: github.ref_type == 'branch'
64+
env:
65+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }}

0 commit comments

Comments
 (0)