File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,18 @@ jobs:
2424 - name : Install dependencies
2525 run : npm install
2626
27- # 4. Build the Vite project
27+ # 4. Add secrets as environment variables
28+ - name : Set environment variables
29+ run : |
30+ echo "VITE_REACT_APP_EMAILJS_SERVICE_ID=${{ secrets.VITE_REACT_APP_EMAILJS_SERVICE_ID }}" >> $GITHUB_ENV
31+ echo "VITE_REACT_APP_EMAILJS_PUBLIC_KEY=${{ secrets.VITE_REACT_APP_EMAILJS_PUBLIC_KEY }}" >> $GITHUB_ENV
32+ echo "VITE_REACT_APP_EMAILJS_TEMPLATE_ID=${{ secrets.VITE_REACT_APP_EMAILJS_TEMPLATE_ID }}" >> $GITHUB_ENV
33+
34+ # 5. Build the Vite project
2835 - name : Build Vite project
2936 run : npm run build
3037
31- # 5 . Deploy to GitHub Pages
38+ # 6 . Deploy to GitHub Pages
3239 - name : Deploy to GitHub Pages
3340 uses : peaceiris/actions-gh-pages@v3
3441 with :
You can’t perform that action at this time.
0 commit comments