Dispatch docs deploy from ci
- If artifact publish is ok, dispatch deploy-docs workflow for current branch. - Relates #166
This commit is contained in:
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user