Skip to content

Commit 9dd7a09

Browse files
committed
Try a different env var to hopefully work on main too
1 parent 53faef1 commit 9dd7a09

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/deploy-reflect.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
- name: publish
3030
env:
3131
REFLECT_AUTH_KEY: ${{ secrets.REFLECT_AUTH_KEY }}
32+
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
3233
run: |
33-
npx reflect publish --server-path="./reflect/orchestrator/server.ts" --reflect-channel=canary --app=loop-orchestrator-${GITHUB_HEAD_REF//[^a-zA-Z0-9]/-} --auth-key-from-env=REFLECT_AUTH_KEY
34-
npx reflect publish --server-path="./reflect/share/server.ts" --reflect-channel=canary --app=loop-share-${GITHUB_HEAD_REF//[^a-zA-Z0-9]/-} --auth-key-from-env=REFLECT_AUTH_KEY
35-
npx reflect publish --server-path="./reflect/play/server.ts" --reflect-channel=canary --app=loop-play-${GITHUB_HEAD_REF//[^a-zA-Z0-9]/-} --auth-key-from-env=REFLECT_AUTH_KEY
34+
npx reflect publish --server-path="./reflect/orchestrator/server.ts" --reflect-channel=canary --app=loop-orchestrator-${BRANCH_NAME//[^a-zA-Z0-9]/-} --auth-key-from-env=REFLECT_AUTH_KEY
35+
npx reflect publish --server-path="./reflect/share/server.ts" --reflect-channel=canary --app=loop-share-${BRANCH_NAME//[^a-zA-Z0-9]/-} --auth-key-from-env=REFLECT_AUTH_KEY
36+
npx reflect publish --server-path="./reflect/play/server.ts" --reflect-channel=canary --app=loop-play-${BRANCH_NAME//[^a-zA-Z0-9]/-} --auth-key-from-env=REFLECT_AUTH_KEY

0 commit comments

Comments
 (0)