Skip to content

feat: add support for more publishing events #128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/sdk-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,19 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
run: npm publish --access public
- id: publish-event
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: publish-event
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
target_directory: ${{ needs.release.outputs.typescript_directory }}
registry_name: "npm"
env:
GH_ACTION_RESULT: ${{ job.status }}
GH_ACTION_VERSION: "v15"
- uses: ravsamhq/notify-slack-action@v2
if: always() && env.SLACK_WEBHOOK_URL != ''
with:
Expand Down Expand Up @@ -232,6 +245,16 @@ jobs:
SONATYPE_PASSWORD: ${{ secrets.ossrh_password }}
SONATYPE_SIGNING_KEY: ${{ secrets.java_gpg_secret_key }}
SIGNING_KEY_PASSPHRASE: ${{ secrets.java_gpg_passphrase }}
- id: publish-event
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: publish-event
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
target_directory: ${{ needs.release.outputs.java_directory }}
registry_name: "sonatype"
- uses: ravsamhq/notify-slack-action@v2
if: always() && env.SLACK_WEBHOOK_URL != ''
with:
Expand Down Expand Up @@ -261,6 +284,16 @@ jobs:
api_token: ${{ secrets.packagist_token }}
package_name: ${{ github.repository }}
package_base_url: ${{ github.server_url }}
- id: publish-event
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: publish-event
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
target_directory: ${{ needs.release.outputs.php_directory }}
registry_name: "packagist"
- uses: ravsamhq/notify-slack-action@v2
if: always() && env.SLACK_WEBHOOK_URL != ''
with:
Expand Down Expand Up @@ -290,6 +323,16 @@ jobs:
dotnet-version: ${{ inputs.dotnet_version }}
- name: Publish
run: dotnet pack -o . && dotnet nuget push *.nupkg --api-key ${{ secrets.nuget_api_key }} --source https://api.nuget.org/v3/index.json
- id: publish-event
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: publish-event
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
target_directory: ${{ needs.release.outputs.csharp_directory }}
registry_name: "nuget"
- uses: ravsamhq/notify-slack-action@v2
if: always() && env.SLACK_WEBHOOK_URL != ''
with:
Expand Down Expand Up @@ -329,6 +372,16 @@ jobs:
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
env:
GITHUB_TOKEN: ${{ secrets.github_access_token }}
- id: publish-event
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: publish-event
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
target_directory: ${{ needs.release.outputs.publish_terraform }}
registry_name: "terraform"
- uses: ravsamhq/notify-slack-action@v2
if: always() && env.SLACK_WEBHOOK_URL != ''
with:
Expand Down Expand Up @@ -368,6 +421,16 @@ jobs:
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push *.gem
- id: publish-event
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: publish-event
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
target_directory: ${{ needs.release.outputs.ruby_directory }}
registry_name: "gems"
- uses: ravsamhq/notify-slack-action@v2
if: always() && env.SLACK_WEBHOOK_URL != ''
with:
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/workflow-executor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,16 @@ jobs:
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- id: publish-event
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: publish-event
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
target_directory: ${{ needs.run-workflow.outputs.python_directory }}
registry_name: "pypi"
- uses: ravsamhq/notify-slack-action@v2
if: always() && env.SLACK_WEBHOOK_URL != ''
with:
Expand Down Expand Up @@ -258,6 +268,16 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
run: npm publish --access public
- id: publish-event
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: publish-event
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
target_directory: ${{ needs.run-workflow.outputs.typescript_directory }}
registry_name: "npm"
- uses: ravsamhq/notify-slack-action@v2
if: always() && env.SLACK_WEBHOOK_URL != ''
with:
Expand Down Expand Up @@ -329,6 +349,16 @@ jobs:
SONATYPE_PASSWORD: ${{ secrets.ossrh_password }}
SONATYPE_SIGNING_KEY: ${{ secrets.java_gpg_secret_key }}
SIGNING_KEY_PASSPHRASE: ${{ secrets.java_gpg_passphrase }}
- id: publish-event
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: publish-event
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
target_directory: ${{ needs.run-workflow.outputs.java_directory }}
registry_name: "sonatype"
- uses: ravsamhq/notify-slack-action@v2
if: always() && env.SLACK_WEBHOOK_URL != ''
with:
Expand Down Expand Up @@ -389,6 +419,16 @@ jobs:
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push *.gem
- id: publish-event
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: publish-event
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
target_directory: ${{ needs.run-workflow.outputs.ruby_directory }}
registry_name: "gems"
- uses: ravsamhq/notify-slack-action@v2
if: always() && env.SLACK_WEBHOOK_URL != ''
with:
Expand Down Expand Up @@ -439,6 +479,16 @@ jobs:
dotnet-version: ${{ inputs.dotnet_version }}
- name: Publish
run: dotnet pack -o . && dotnet nuget push *.nupkg --api-key ${{ secrets.nuget_api_key }} --source https://api.nuget.org/v3/index.json
- id: publish-event
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: publish-event
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
target_directory: ${{ needs.run-workflow.outputs.csharp_directory }}
registry_name: "nuget"
- uses: ravsamhq/notify-slack-action@v2
if: always() && env.SLACK_WEBHOOK_URL != ''
with:
Expand Down Expand Up @@ -487,6 +537,16 @@ jobs:
api_token: ${{ secrets.packagist_token }}
package_name: ${{ github.repository }}
package_base_url: ${{ github.server_url }}
- id: publish-event
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: publish-event
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
target_directory: ${{ needs.run-workflow.outputs.php_directory }}
registry_name: "packagist"
- uses: ravsamhq/notify-slack-action@v2
if: always() && env.SLACK_WEBHOOK_URL != ''
with:
Expand Down
Loading
Loading