Skip to content

Commit

Permalink
gh: SDK Publish Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
birkjernstrom committed Dec 19, 2024
1 parent d91653d commit a67ef4a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/sdk_generation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ jobs:
set_version: ${{ github.event.inputs.set_version }}
secrets:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
packagist_token: ${{ secrets.PACKAGIST_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
23 changes: 23 additions & 0 deletions .github/workflows/sdk_publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish
permissions:
checks: write
contents: write
pull-requests: write
statuses: write
id-token: write
"on":
push:
branches:
- main
paths:
- .speakeasy/gen.lock
workflow_dispatch: {}
jobs:
publish:
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
with:
target: polar
secrets:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
packagist_token: ${{ secrets.PACKAGIST_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
4 changes: 4 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ targets:
polar:
target: php
source: Polar-OAS
publish:
packagist:
username: polar
token: $packagist_token
codeSamples:
registry:
location: registry.speakeasyapi.dev/polar/polar/polar-api-php-code-samples
Expand Down

0 comments on commit a67ef4a

Please sign in to comment.