File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 5555 update-analytics :
5656 if : github.event_name == 'schedule'
5757 runs-on : ubuntu-latest
58+ environment : github-pages
5859 permissions :
5960 contents : write # Ensure GitHub Actions can push to the repository
6061 steps :
@@ -83,13 +84,15 @@ jobs:
8384
8485 - run : npm ci
8586
87+ - name : Create .env File
88+ run : |
89+ echo GOOGLE_CLIENT_ID=${{ secrets.GOOGLE_CLIENT_ID }} >> .env
90+ echo GOOGLE_CLIENT_SECRET=${{ secrets.GOOGLE_CLIENT_SECRET }} >> .env
91+ echo GOOGLE_REFRESH_TOKEN=${{ secrets.GOOGLE_REFRESH_TOKEN }} >> .env
92+ echo PROPERTY_ID=${{ secrets.PROPERTY_ID }} >> .env
93+
8694 - name : Run analytics update
8795 run : npm run analytics
88- env :
89- GOOGLE_CLIENT_ID : ${{ secrets.GOOGLE_CLIENT_ID }}
90- GOOGLE_CLIENT_SECRET : ${{ secrets.GOOGLE_CLIENT_SECRET }}
91- GOOGLE_REFRESH_TOKEN : ${{ secrets.GOOGLE_REFRESH_TOKEN }}
92- PROPERTY_ID : ${{ secrets.PROPERTY_ID }}
9396
9497 - name : Build site
9598 run : npm run build
You can’t perform that action at this time.
0 commit comments