File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 11
11
environment : publish
12
12
13
13
steps :
14
+ - name : Generate a token
15
+ id : generate_token
16
+ uses : actions/create-github-app-token@v1
17
+ with :
18
+ app-id : ${{ secrets.APP_ID }}
19
+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
20
+ owner : ' openai'
21
+ repositories : ' openai-node,openai-deno-build'
22
+
14
23
- uses : actions/checkout@v3
15
24
16
25
- name : Set up Node
27
36
run : |
28
37
yarn install
29
38
30
- - name : Generate a token
31
- id : generate_token
32
- uses : actions/create-github-app-token@v1
33
- with :
34
- app-id : ${{ secrets.APP_ID }}
35
- private-key : ${{ secrets.APP_PRIVATE_KEY }}
36
-
37
39
- name : Publish to Deno
38
40
run : |
39
41
bash ./scripts/git-publish-deno.sh
40
42
env :
41
- GITHUB_TOKEN : ${{ steps.generate_token.outputs.token }}
42
- DENO_PUSH_REMOTE_URL :
[email protected] :openai/openai-deno-build.git
43
+ DENO_PUSH_REMOTE_URL : https://username:${{ steps.generate_token.outputs.token }}@github.com/openai/openai-deno-build.git
43
44
DENO_PUSH_BRANCH : main
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -exuo pipefail
3
3
4
- # This script pushes the contents of the `deno`` directory to the `deno` branch,
4
+ # This script pushes the contents of the `deno` directory to the `deno` branch,
5
5
# and creates a `vx.x.x-deno` tag, so that Deno users can
6
6
# import OpenAI from "https://raw.githubusercontent.com/openai/openai-node/vx.x.x-deno/mod.ts"
7
7
You can’t perform that action at this time.
0 commit comments