Skip to content

Commit

Permalink
feat: test publishing tracking (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-timothy-albert authored May 9, 2024
1 parent f86aa1a commit 3c67c88
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/sdk-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ jobs:
action: publish-event
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
target_directory: ${{ needs.release.outputs.python_directory }}
registry_name: "pypi"
env:
GH_ACTION_RESULT: ${{ job.status }}
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ outputs:
description: "The location of the OpenAPI document used for generation"
registry_name:
description: "The name of the publishing registry"
target_directory:
description: "The directory the SDK target was generated to"
runs:
using: "docker"
image: "docker://ghcr.io/speakeasy-api/sdk-generation-action:v15"
Expand All @@ -168,4 +170,5 @@ runs:
- ${{ inputs.target }}
- ${{ inputs.registry_tags }}
- ${{ inputs.registry_name }}
- ${{ inputs.target_directory }}

3 changes: 3 additions & 0 deletions internal/actions/publishEvent.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ func PublishEvent() error {
return err
}

fmt.Println(workingDir)
fmt.Println(os.Getenv("INPUT_TARGET_DIRECTORY"))

loadedCfg, err := config.Load(workingDir)
if err != nil {
return err
Expand Down

0 comments on commit 3c67c88

Please sign in to comment.