Skip to content

Commit

Permalink
Merge pull request #23 from radio4000/fix/use-env
Browse files Browse the repository at this point in the history
try fix c
  • Loading branch information
4www committed Apr 18, 2024
2 parents 9f9a7c9 + e0700f0 commit cb3dc0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
3 changes: 0 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
SUPABASE_URL=https://oupgudlkspsmzkmeovlh.supabase.co
SUPABASE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im91cGd1ZGxrc3BzbXprbWVvdmxoIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTM0NTIwNzQsImV4cCI6MjAyOTAyODA3NH0.KAbKFBChJHtxTmOZM2pdeppIyNbcnQkEgSi6RA7OQdo

# Optional for tests
DATABASE_URL=postgres://postgres:xxx@db.xxx.supabase.co:6543/postgres
7 changes: 3 additions & 4 deletions .github/workflows/deploy_static_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
VITE_SUPABASE_URL: '${{ env.SUPABASE_URL }}'
VITE_SUPABASE_KEY: '${{ env.SUPABASE_KEY }}'

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
Expand All @@ -34,6 +30,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set env
run: echo "VITE_SUPABASE_URL=$SUPABASE_URL" >> $GITHUB_ENV
run: echo "VITE_SUPABASE_KEY=$SUPABASE_KEY" >> $GITHUB_ENV
- run: npm install
- run: npm run build
- name: Setup Pages
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/publish-to-npm-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
VITE_SUPABASE_URL: '${{ env.SUPABASE_URL }}'
VITE_SUPABASE_KEY: '${{ env.SUPABASE_KEY }}'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set env
run: echo "VITE_SUPABASE_URL=$SUPABASE_URL" >> $GITHUB_ENV
run: echo "VITE_SUPABASE_KEY=$SUPABASE_KEY" >> $GITHUB_ENV
- uses: actions/setup-node@v3
- run: npm install
- run: npm run types
Expand Down

0 comments on commit cb3dc0e

Please sign in to comment.