From e0700f01201b669892d67e9a31b19483556f9919 Mon Sep 17 00:00:00 2001 From: "ug.rp" Date: Thu, 18 Apr 2024 19:10:43 +0200 Subject: [PATCH] try fix c --- .env.example | 3 --- .github/workflows/deploy_static_pages.yml | 7 +++---- .github/workflows/publish-to-npm-registry.yml | 7 +++---- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.env.example b/.env.example index 8e4a58b..8011259 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/.github/workflows/deploy_static_pages.yml b/.github/workflows/deploy_static_pages.yml index 3cbf2f2..72014bd 100644 --- a/.github/workflows/deploy_static_pages.yml +++ b/.github/workflows/deploy_static_pages.yml @@ -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 @@ -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 diff --git a/.github/workflows/publish-to-npm-registry.yml b/.github/workflows/publish-to-npm-registry.yml index 9cea95e..2a54a0b 100644 --- a/.github/workflows/publish-to-npm-registry.yml +++ b/.github/workflows/publish-to-npm-registry.yml @@ -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