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 Astro Site
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ concurrency :
14+ group : " pages"
15+ cancel-in-progress : true
16+
17+ jobs :
18+ build :
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@v4
24+
25+ - name : Setup Node.js
26+ uses : actions/setup-node@v4
27+ with :
28+ node-version : 22
29+
30+ - name : Setup Bun
31+ uses : oven-sh/setup-bun@v2
32+ with :
33+ bun-version : latest
34+
35+ - name : Setup Pages
36+ uses : actions/configure-pages@v5
37+
38+ - name : Install Dependencies
39+ run : bun install
40+
41+ - name : Build Site
42+ run : bunx astro build
43+
44+ - name : Upload Artifact
45+ uses : actions/upload-pages-artifact@v3
46+ with :
47+ path : ./dist
48+
49+ deploy :
50+ environment :
51+ name : github-pages
52+ url : ${{ steps.deployment.outputs.page_url }}
53+
54+ runs-on : ubuntu-latest
55+
56+ needs : build
57+
58+ steps :
59+ - name : Deploy to GitHub Pages
60+ id : deployment
61+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments