[github] Add a manual workflow to publish openai-deno-build #516
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes being requested
Adds a new GitHub workflow that can be run manually to publish the latest tag to the
openai-deno-build
repo. All pushes to that repo are published tohttps://deno.land/x/openai
.The publishing to the Deno repo will happen using the credentials of the newly set up "OpenAI Open Source" GitHub App. I've added the secrets
APP_ID
andAPP_PRIVATE_KEY
to thepublish
environment.I've tested this works by:
openai-node
andopenai-deno-build
reposIf this manual publishing step works correctly, I will update the
create-releases.yml
workflow to use the same steps to enable auto-publishing. To ensure we don't publish broken tags tohttps://deno.land/x/openai
, I will disable webhooks on theopenai-deno-build
repo until I'm sure the publishing fromopenai-node
toopenai-deno-build
works correctly.Additional context & links