Dispatch docs deploy from ci

- If artifact publish is ok, dispatch deploy-docs
  workflow for current branch.
- Relates #166
This commit is contained in:
Janne Valkealahti
2023-04-18 09:57:59 +01:00
parent 07cd8fb114
commit 45c75e96cb

View File

@@ -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 }}