Try a different env var to hopefully work on main too #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Reflect to Production | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: [main] | |
env: | |
NODE_VERSION: "18.x" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: "npm" | |
- name: npm install | |
run: | | |
npm install | |
- name: publish | |
env: | |
REFLECT_AUTH_KEY: ${{ secrets.REFLECT_AUTH_KEY }} | |
run: | | |
npx reflect publish --server-path="./reflect/orchestrator/server.ts" --reflect-channel=canary --app=loop-orchestrator-${GITHUB_REF_NAME//[^a-zA-Z0-9]/-} --auth-key-from-env=REFLECT_AUTH_KEY | |
npx reflect publish --server-path="./reflect/share/server.ts" --reflect-channel=canary --app=loop-share-${GITHUB_REF_NAME//[^a-zA-Z0-9]/-} --auth-key-from-env=REFLECT_AUTH_KEY | |
npx reflect publish --server-path="./reflect/play/server.ts" --reflect-channel=canary --app=loop-play-${GITHUB_REF_NAME//[^a-zA-Z0-9]/-} --auth-key-from-env=REFLECT_AUTH_KEY |