Skip to content

Commit

Permalink
use .env instead
Browse files Browse the repository at this point in the history
  • Loading branch information
rantanevich committed Mar 15, 2024
1 parent 639d4ec commit 72a976f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,11 @@ jobs:
export_to: output,log
mode: fill

- name: generate env.json
- name: generate .env
run: |
cat > ui/env.json <<-EOF
{
"NEXT_PUBLIC_API_URL": "${{ secrets.NEXT_PUBLIC_API_URL }}",
"NEXT_PUBLIC_API_KEY": "${{ secrets.NEXT_PUBLIC_API_KEY }}"
}
cat > ui/.env <<-EOF
NEXT_PUBLIC_API_URL=${{ secrets.NEXT_PUBLIC_API_URL }}
NEXT_PUBLIC_API_KEY=${{ secrets.NEXT_PUBLIC_API_KEY }}
EOF
- name: Deploy React.js
Expand Down

0 comments on commit 72a976f

Please sign in to comment.