File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ name: Deploy React App to GitHub Pages
22
33on :
44 push :
5- branches : [ develop ]
5+ branches : [ master ]
66 pull_request :
7- branches : [ develop ]
7+ branches : [ master ]
88
99# Allow this workflow to create deployments and pages
1010permissions :
2727
2828 env :
2929 DEPLOY_USER : ' towfiq-ul'
30- APP_VERSION : ' v3 '
30+ APP_VERSION : ' v2 '
3131
3232 steps :
3333 - uses : actions/checkout@v4
4545 working-directory : ./${{ env.APP_VERSION }}
4646 run : npm ci
4747
48+ - name : Build Frontend with Secrets
49+ run : npm run build
50+ env :
51+ # This is the 'env' block.
52+ # LEFT SIDE (Key): This is the environment variable name available during 'npm run build'.
53+ # RIGHT SIDE (Value): This pulls the value from the GitHub Secret named VITE_RECEIVER_EMAIL.
54+ VITE_EMAILJS_PUBLIC_KEY : ${{ secrets.VITE_EMAILJS_PUBLIC_KEY }}
55+ VITE_EMAILJS_SERVICE_ID : ${{ secrets.VITE_EMAILJS_SERVICE_ID }}
56+ VITE_EMAILJS_TEMPLATE_ID : ${{ secrets.VITE_EMAILJS_TEMPLATE_ID }}
57+ VITE_RECEIVER_EMAIL : ${{ secrets.VITE_RECEIVER_EMAIL }}
58+
4859 - name : Build project
4960 working-directory : ./${{ env.APP_VERSION }}
5061 run : npm run build
You can’t perform that action at this time.
0 commit comments