Skip to content

Commit

Permalink
Add .env file generation to deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tobifra committed Aug 18, 2024
1 parent 4eccaa7 commit 238eb96
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ jobs:

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install frontend dependencies
run: npm install

- name: Create .env file
env:
VITE_BACKEND_URL: ${{ secrets.BACKEND_URL }}
run: |
echo "VITE_BACKEND_URL=$VITE_BACKEND_URL" > .env
- name: Build the frontend project
run: npm run docs:build
Expand Down

0 comments on commit 238eb96

Please sign in to comment.