File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ # Workflow to deploy CIN Framework site from /web folder to GitHub Pages
2+ name : Deploy CIN Framework Website
3+
4+ on :
5+ push :
6+ branches : ["main"] # Runs only on pushes to main
7+ workflow_dispatch : # Allow manual trigger from Actions tab
8+
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ concurrency :
15+ group : " pages"
16+ cancel-in-progress : false
17+
18+ jobs :
19+ build :
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : Checkout repository
23+ uses : actions/checkout@v4
24+
25+ - name : Setup Pages
26+ uses : actions/configure-pages@v5
27+
28+ # Build step (for Jekyll/HTML site inside /web)
29+ - name : Build site
30+ uses : actions/jekyll-build-pages@v1
31+ with :
32+ source : ./web
33+ destination : ./_site
34+
35+ - name : Upload artifact
36+ uses : actions/upload-pages-artifact@v3
37+
38+ deploy :
39+ environment :
40+ name : github-pages
41+ url : ${{ steps.deployment.outputs.page_url }}
42+ runs-on : ubuntu-latest
43+ needs : build
44+ steps :
45+ - name : Deploy to GitHub Pages
46+ id : deployment
47+ uses : actions/deploy-pages@v4
48+
You can’t perform that action at this time.
0 commit comments