File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy pages
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches : [main]
7+
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ concurrency :
14+ group : pages
15+ cancel-in-progress : false
16+
17+ jobs :
18+ build :
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
23+
24+ - uses : actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
25+ with :
26+ node-version : " lts/*"
27+
28+ - name : Setup @antfu/ni
29+ run : npm i -g @antfu/ni
30+
31+ - name : Install dependencies
32+ run : nci
33+
34+ - name : Build
35+ run : nr build --base /${{github.event.repository.name}}/ --without-notes
36+ env :
37+ NODE_OPTIONS : " --max-old-space-size=4096"
38+
39+ - name : Setup Pages
40+ uses : actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
41+
42+ - uses : actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
43+ with :
44+ path : dist
45+
46+ deploy :
47+ environment :
48+ name : github-pages
49+ url : ${{ steps.deployment.outputs.page_url }}
50+ needs : build
51+ runs-on : ubuntu-latest
52+ name : Deploy
53+ steps :
54+ - name : Deploy to GitHub Pages
55+ id : deployment
56+ uses : actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
You can’t perform that action at this time.
0 commit comments