diff --git a/.github/workflows/speakeasy_sdk_publish.yml b/.github/workflows/speakeasy_sdk_publish.yml index c1067a018..ffd41f0bd 100644 --- a/.github/workflows/speakeasy_sdk_publish.yml +++ b/.github/workflows/speakeasy_sdk_publish.yml @@ -1,16 +1,22 @@ name: Publish -"on": - push: + +on: + push: # Will trigger when the RELEASES.md file is updated by the merged PR from the generation workflow + paths: + - "RELEASES.md" branches: - main - paths: - - RELEASES.md + jobs: publish: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14 + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14 # Import the sdk publish workflow which will handle the publishing to the package managers with: create_release: true publish_java: true secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} - speakeasy_api_key: ${{ secrets.SPEAKEASY_PROD_API_KEY }} + speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} + ossrh_username: ${{ secrets.MAVEN_USERNAME }} + ossrh_password: ${{ secrets.MAVEN_PASSWORD }} + java_gpg_secret_key: ${{ secrets.GPG_SECRET_KEY }} + java_passphrase: ${{ secrets.GPG_PASSPHRASE }}