This commit is contained in:
@@ -12,6 +12,7 @@ jobs:
|
||||
env:
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
SESSION_SECRET: ${{ secrets.SESSION_SECRET }}
|
||||
ABC_API_KEY: ${{ secrets.ABC_API_KEY }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -28,6 +29,7 @@ jobs:
|
||||
set -euo pipefail
|
||||
test -n "$CLOUDFLARE_API_TOKEN" || { echo "CLOUDFLARE_API_TOKEN is missing"; exit 1; }
|
||||
test -n "$SESSION_SECRET" || { echo "SESSION_SECRET is missing"; exit 1; }
|
||||
test -n "$ABC_API_KEY" || { echo "ABC_API_KEY is missing"; exit 1; }
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install --no-fund --no-audit
|
||||
@@ -41,6 +43,12 @@ jobs:
|
||||
set -euo pipefail
|
||||
printf '%s' "$SESSION_SECRET" | npx wrangler secret put SESSION_SECRET --name baron-qa-gateway-test
|
||||
|
||||
- name: Register ABC API secret
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
printf '%s' "$ABC_API_KEY" | npx wrangler secret put ABC_API_KEY --name baron-qa-gateway-test
|
||||
|
||||
- name: Upload static files to R2
|
||||
run: npm run r2:upload
|
||||
|
||||
|
||||
Reference in New Issue
Block a user