Skip to content

Commit

Permalink
Merge pull request #97 from sinch/publish-javadoc-from-ci
Browse files Browse the repository at this point in the history
CI: Action publishing javadoc
  • Loading branch information
JPPortier authored Jun 28, 2024
2 parents 3a32964 + 240fda5 commit 2afc0b8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/publish-javadoc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Publish javadoc
run-name: Trigger a PR onto documentation repo to publish javadoc artifact
on:
workflow_dispatch:
inputs:
SEMVER:
description: "Javadoc Version number to be published (use semver semantic: 'X.Y.Z'). File will be downloaded from https://repo1.maven.org/maven2/com/sinch/sdk/sinch-sdk-java/X.Y.Z"
required: true

jobs:
trigger-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: grep "${{ github.actor }}" .github/CODEOWNERS && curl --request POST --form token=${{ secrets.SINCH_SDK_JAVA_PUBLISH_JAVADOC_TOKEN }} --form ref=development --form "variables[TRIGGER_JOB]"="sinch-sdk-java-publish-javadoc" --form "variables[SEMVER]"="${{ github.event.inputs.SEMVER }}" "${{ secrets.JAVADOC_PUBLISH_URL}}"

0 comments on commit 2afc0b8

Please sign in to comment.