Skip to content

Commit bdc7c7b

Browse files
authored
Merge pull request #9 from trsctr/feat/contactmodal
updated deploy workflow with secrets
2 parents 08d6b5f + 28d948f commit bdc7c7b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)