File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Deploy to GitHub Pages
22
33on :
4- push :
5- branches : [ main ]
4+ push :
5+ branches : [main]
66
77permissions :
8- contents : read
9- pages : write
10- id-token : write
8+ contents : read
9+ pages : write
10+ id-token : write
1111
1212concurrency :
13- group : " pages"
14- cancel-in-progress : false
13+ group : " pages"
14+ cancel-in-progress : false
1515
1616jobs :
17- build :
18- runs-on : ubuntu-latest
19- steps :
20- - name : Checkout
21- uses : actions/checkout@v4
22-
23- - name : Setup Node.js
24- uses : actions/setup-node@v4
25- with :
26- node-version : ' 18 '
27- cache : ' npm'
28-
29- - name : Install dependencies
30- run : npm ci
31-
32- - name : Build
33- run : npm run build
34- env :
35- NODE_ENV : production
36- VITE_SUPABASE_URL : ${{ secrets.VITE_SUPABASE_URL }}
37- VITE_SUPABASE_ANON_KEY : ${{ secrets.VITE_SUPABASE_ANON_KEY }}
38-
39- - name : Setup Pages
40- uses : actions/configure-pages@v4
41-
42- - name : Upload artifact
43- uses : actions/upload-pages-artifact@v3
44- with :
45- path : ./dist
46-
47- deploy :
48- environment :
49- name : github-pages
50- url : ${{ steps.deployment.outputs.page_url }}
51- runs-on : ubuntu-latest
52- needs : build
53- steps :
54- - name : Deploy to GitHub Pages
55- id : deployment
56- uses : actions/deploy-pages@v4
17+ build :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v4
22+
23+ - name : Setup Node.js
24+ uses : actions/setup-node@v4
25+ with :
26+ node-version : " 20 "
27+ cache : " npm"
28+
29+ - name : Install dependencies
30+ run : npm ci
31+
32+ - name : Build
33+ run : npm run build
34+ env :
35+ NODE_ENV : production
36+ VITE_SUPABASE_URL : ${{ secrets.VITE_SUPABASE_URL }}
37+ VITE_SUPABASE_ANON_KEY : ${{ secrets.VITE_SUPABASE_ANON_KEY }}
38+
39+ - name : Setup Pages
40+ uses : actions/configure-pages@v4
41+
42+ - name : Upload artifact
43+ uses : actions/upload-pages-artifact@v3
44+ with :
45+ path : ./dist
46+
47+ deploy :
48+ environment :
49+ name : github-pages
50+ url : ${{ steps.deployment.outputs.page_url }}
51+ runs-on : ubuntu-latest
52+ needs : build
53+ steps :
54+ - name : Deploy to GitHub Pages
55+ id : deployment
56+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments