Skip to content

Commit

Permalink
incorporate gh client id in frontend deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam McKee committed Jun 2, 2024
1 parent 26bd16b commit 0414a42
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/www.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Check env vars
run: |
if [ -z "$GITHUB_CLIENT_ID" ]; then exit 1; fi
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ e2e/blob-report
e2e/playwright/.cache
e2e/playwright-report
e2e/test-results
frontend/.env.development
frontend/.env.production
frontend/dist
github/lib
Expand Down
4 changes: 3 additions & 1 deletion frontend/build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env sh
set -e

echo "VITE_SCRIPT_TEMPLATE_VERSION=\"$(node templateVersion.js)\"" > .env.production
echo "VITE_GITHUB_CLIENT_ID=\"$GITHUB_CLIENT_ID\"" > .env.production
echo "VITE_SCRIPT_TEMPLATE_VERSION=\"$(node templateVersion.js)\"" >> .env.production

pnpm build:tsc
pnpm build:vite

Expand Down

0 comments on commit 0414a42

Please sign in to comment.