From 9a6df27dd23112f731f5980b39b7dfc9503e8ca2 Mon Sep 17 00:00:00 2001 From: terencecho Date: Thu, 18 May 2023 18:35:00 -0700 Subject: [PATCH] Revert "Update publishing workflow file" This reverts commit 3bd1ce73a80f196d18e2b70ef384a090c098bb35. --- .github/workflows/speakeasy_sdk_publish.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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 }}