File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : write
11+
12+ jobs :
13+ build-and-deploy :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v3
18+
19+ - name : Setup Node.js
20+ uses : actions/setup-node@v3
21+ with :
22+ node-version : ' 18.x'
23+ cache : ' npm'
24+
25+ - name : Install Dependencies
26+ run : npm ci
27+
28+ - name : Build
29+ env :
30+ VITE_EMAILJS_PUBLIC_KEY : ${{ secrets.VITE_EMAILJS_PUBLIC_KEY }}
31+ VITE_EMAILJS_SERVICE_ID : ${{ secrets.VITE_EMAILJS_SERVICE_ID }}
32+ VITE_EMAILJS_TEMPLATE_ID : ${{ secrets.VITE_EMAILJS_TEMPLATE_ID }}
33+ run : npm run build
34+
35+ - name : Deploy
36+ uses : peaceiris/actions-gh-pages@v3
37+ with :
38+ github_token : ${{ secrets.GITHUB_TOKEN }}
39+ publish_dir : ./dist
You can’t perform that action at this time.
0 commit comments