Skip to content

Commit

Permalink
chore: (#542) env 파일 세팅
Browse files Browse the repository at this point in the history
  • Loading branch information
inyeong-kang committed Sep 12, 2023
1 parent 4092077 commit e45f1db
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/frontend-lighthouse-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,26 @@ jobs:
if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
run: npm ci

- name: Set environment variable
run: |
touch .env
echo VOTOGETHER_BASE_URL=${{ secrets.VOTOGETHER_BASE_URL }} >> .env
echo VOTOGETHER_MOCKING_URL=${{ secrets.VOTOGETHER_MOCKING_URL }} >> .env
echo VOTOGETHER_REST_API_KEY=${{ secrets.VOTOGETHER_REST_API_KEY }} >> .env
echo VOTOGETHER_SERVER_REDIRECT_URL=${{ secrets.VOTOGETHER_SERVER_REDIRECT_URL }} >> .env
echo VOTOGETHER_CHANNEL_TALK_KEY=${{ secrets.VOTOGETHER_CHANNEL_TALK_KEY }} >> .env
echo VOTOGETHER_GOOGLE_TAG_ID=${{ secrets.VOTOGETHER_GOOGLE_TAG_ID }} >> .env
cat .env
- name: Build
run: npm run build
env:
VOTOGETHER_BASE_URL: ${{ secrets.VOTOGETHER_BASE_URL }}
VOTOGETHER_MOCKING_URL: ${{ secrets.VOTOGETHER_MOCKING_URL }}
VOTOGETHER_REST_API_KEY: ${{ secrets.VOTOGETHER_REST_API_KEY }}
VOTOGETHER_SERVER_REDIRECT_URL: ${{ secrets.VOTOGETHER_SERVER_REDIRECT_URL}}
VOTOGETHER_CHANNEL_TALK_KEY: ${{ secrets.VOTOGETHER_CHANNEL_TALK_KEY }}
VOTOGETHER_GOOGLE_TAG_ID: ${{ secrets.VOTOGETHER_GOOGLE_TAG_ID }}
VOTOGETHER_BASE_URL: ${{ env.VOTOGETHER_BASE_URL }}
VOTOGETHER_MOCKING_URL: ${{ env.VOTOGETHER_MOCKING_URL }}
VOTOGETHER_REST_API_KEY: ${{ env.VOTOGETHER_REST_API_KEY }}
VOTOGETHER_SERVER_REDIRECT_URL: ${{ env.VOTOGETHER_SERVER_REDIRECT_URL}}
VOTOGETHER_CHANNEL_TALK_KEY: ${{ env.VOTOGETHER_CHANNEL_TALK_KEY }}
VOTOGETHER_GOOGLE_TAG_ID: ${{ env.VOTOGETHER_GOOGLE_TAG_ID }}

- name: Run Lighthouse CI
env:
Expand Down

0 comments on commit e45f1db

Please sign in to comment.