Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
better publish deps
Browse files Browse the repository at this point in the history
  • Loading branch information
chase-crumbaugh committed Feb 9, 2024
1 parent 0134fb8 commit 2bb7682
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 7 deletions.
42 changes: 36 additions & 6 deletions .github/workflows/workflow-executor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,12 @@ jobs:
GH_ACTION_VERSION: "v14"
GH_ACTION_STEP: ${{ github.job }}
publish-pypi:
if: ${{ always() && needs.run-workflow.outputs.python_regenerated == 'true' && needs.run-workflow.outputs.publish_python == 'true' && inputs.mode != 'pr' }}
if: ${{ always() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled') &&
needs.run-workflow.outputs.python_regenerated == 'true' &&
needs.run-workflow.outputs.publish_python == 'true'
&& inputs.mode != 'pr' }}
name: Publish Python SDK
runs-on: ubuntu-latest
needs: [ run-workflow ]
Expand Down Expand Up @@ -215,7 +220,12 @@ jobs:
GH_ACTION_STEP: ${{ github.job }}
TARGET_TYPE: "sdk"
publish-npm:
if: ${{ always() && needs.run-workflow.outputs.typescript_regenerated == 'true' && needs.run-workflow.outputs.publish_typescript == 'true' && inputs.mode != 'pr' }}
if: ${{ always() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled') &&
needs.run-workflow.outputs.typescript_regenerated == 'true' &&
needs.run-workflow.outputs.publish_typescript == 'true'
&& inputs.mode != 'pr' }}
name: Publish Typescript SDK
runs-on: ubuntu-latest
needs: [ run-workflow ]
Expand Down Expand Up @@ -265,7 +275,12 @@ jobs:
GH_ACTION_STEP: ${{ github.job }}
TARGET_TYPE: "sdk"
publish-java:
if: ${{ always() && needs.run-workflow.outputs.java_regenerated == 'true' && needs.run-workflow.outputs.publish_java == 'true' && inputs.mode != 'pr' }}
if: ${{ always() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled') &&
needs.run-workflow.outputs.java_regenerated == 'true' &&
needs.run-workflow.outputs.publish_java == 'true'
&& inputs.mode != 'pr' }}
name: Publish Java SDK
runs-on: ubuntu-latest
needs: [ run-workflow ]
Expand Down Expand Up @@ -320,7 +335,12 @@ jobs:
GH_ACTION_STEP: ${{ github.job }}
TARGET_TYPE: "sdk"
publish-gems:
if: ${{ always() && needs.run-workflow.outputs.ruby_regenerated == 'true' && needs.run-workflow.outputs.publish_ruby == 'true' && inputs.mode != 'pr' }}
if: ${{ always() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled') &&
needs.run-workflow.outputs.ruby_regenerated == 'true' &&
needs.run-workflow.outputs.publish_ruby == 'true'
&& inputs.mode != 'pr' }}
name: Publish Ruby SDK
runs-on: ubuntu-latest
needs: [ run-workflow ]
Expand Down Expand Up @@ -375,7 +395,12 @@ jobs:
GH_ACTION_STEP: ${{ github.job }}
TARGET_TYPE: "sdk"
publish-nuget:
if: ${{ always() && needs.run-workflow.outputs.csharp_regenerated == 'true' && needs.run-workflow.outputs.publish_csharp == 'true' && inputs.mode != 'pr' }}
if: ${{ always() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled') &&
needs.run-workflow.outputs.csharp_regenerated == 'true' &&
needs.run-workflow.outputs.publish_csharp == 'true'
&& inputs.mode != 'pr' }}
name: Publish C# SDK
runs-on: ubuntu-latest
needs: [ run-workflow ]
Expand Down Expand Up @@ -420,7 +445,12 @@ jobs:
GH_ACTION_STEP: ${{ github.job }}
TARGET_TYPE: "sdk"
publish-packagist:
if: ${{ always() && needs.run-workflow.outputs.php_regenerated == 'true' && needs.run-workflow.outputs.publish_php == 'true' && inputs.mode != 'pr' }}
if: ${{ always() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled') &&
needs.run-workflow.outputs.php_regenerated == 'true' &&
needs.run-workflow.outputs.publish_php == 'true'
&& inputs.mode != 'pr' }}
name: Publish PHP SDK
runs-on: ubuntu-latest
needs: [ run-workflow ]
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func Run(installationURLs map[string]string, repoURL string, repoSubdirectories
fmt.Println("force input enabled - setting SPEAKEASY_FORCE_GENERATION=true")
os.Setenv("SPEAKEASY_FORCE_GENERATION", "true")
}

if environment.ShouldOutputTests() {
// TODO: Add CLI flag for outputting tests
}
Expand Down

0 comments on commit 2bb7682

Please sign in to comment.