File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy the website.
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+ concurrency :
14+ group : " pages"
15+ cancel-in-progress : false
16+
17+ jobs :
18+ build :
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - name : ⬇️ Check out the repository
23+ uses : actions/checkout@v4
24+
25+ - name : 📁 Setup Node.js
26+ uses : actions/setup-node@v4
27+ with :
28+ node-version : 23
29+
30+ - name : 📁 Setup Pages
31+ uses : actions/configure-pages@v5
32+
33+ - name : 📁 Install dependencies
34+ run : |
35+ npm ci
36+
37+ - name : Build with Vue
38+ run : |
39+ npm run build
40+
41+ - name : Upload artifact
42+ uses : actions/upload-pages-artifact@v3
43+ with :
44+ path : dist
45+
46+ deploy :
47+ environment :
48+ name : github-pages
49+ url : ${{ steps.deployment.outputs.page_url }}
50+
51+ runs-on : ubuntu-latest
52+
53+ needs : build
54+
55+ steps :
56+ - name : 📦 Deploy to GitHub Pages
57+ id : deployment
58+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments