From 4915c7d67c36ef68429a39fc19fc21cea046b6c4 Mon Sep 17 00:00:00 2001 From: Atty Eleti Date: Sun, 19 Nov 2023 17:20:05 -0800 Subject: [PATCH] [github] Add Deno publish to autorelease script --- .github/workflows/create-releases.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-releases.yml b/.github/workflows/create-releases.yml index 75e63d626..0fa6fc9cb 100644 --- a/.github/workflows/create-releases.yml +++ b/.github/workflows/create-releases.yml @@ -12,6 +12,15 @@ jobs: environment: publish steps: + - name: Generate a token + id: generate_token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + owner: 'openai' + repositories: 'openai-node,openai-deno-build' + - uses: actions/checkout@v3 - uses: stainless-api/trigger-release-please@v1 @@ -48,4 +57,6 @@ jobs: if: ${{ steps.release.outputs.releases_created }} run: | bash ./scripts/git-publish-deno.sh - env: {} + env: + DENO_PUSH_REMOTE_URL: https://username:${{ steps.generate_token.outputs.token }}@github.com/openai/openai-deno-build.git + DENO_PUSH_BRANCH: main