Skip to content

Commit

Permalink
Add .env file creation step in GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnthompson committed Jan 28, 2025
1 parent 90623c7 commit a3a69e5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,15 @@ jobs:
- run: npm ci

- name: Create .env File
run: |
echo GOOGLE_CLIENT_ID=${{ secrets.GOOGLE_CLIENT_ID }} >> .env
echo GOOGLE_CLIENT_SECRET=${{ secrets.GOOGLE_CLIENT_SECRET }} >> .env
echo GOOGLE_REFRESH_TOKEN=${{ secrets.GOOGLE_REFRESH_TOKEN }} >> .env
echo PROPERTY_ID=${{ secrets.PROPERTY_ID }} >> .env
- name: Run analytics update
run: npm run analytics
env:
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
GOOGLE_REFRESH_TOKEN: ${{ secrets.GOOGLE_REFRESH_TOKEN }}
PROPERTY_ID: ${{ secrets.PROPERTY_ID }}

- name: Build site
run: npm run build
Expand Down

0 comments on commit a3a69e5

Please sign in to comment.