File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Deploy Jekyll Site
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v4
14+
15+ - name : Setup Ruby and Install Gems
16+ uses : ruby/setup-ruby@v1
17+ with :
18+ ruby-version : ' 3.1'
19+ bundler-cache : true
20+
21+ - name : Build Jekyll Site
22+ run : bundle exec jekyll build
23+
24+ - name : Upload Artifact
25+ uses : actions/upload-pages-artifact@v3
26+ with :
27+ path : ./_site
28+
29+ deploy :
30+ needs : build
31+ runs-on : ubuntu-latest
32+ permissions :
33+ pages : write
34+ id-token : write
35+ environment :
36+ name : github-pages
37+ url : ${{ steps.deployment.outputs.page_url }}
38+ steps :
39+ - name : Deploy to GitHub Pages
40+ id : deployment
41+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments