File tree Expand file tree Collapse file tree 2 files changed +49
-1
lines changed Expand file tree Collapse file tree 2 files changed +49
-1
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 : ["production"]
6+ workflow_dispatch :
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+ steps :
21+ - name : Checkout repository
22+ uses : actions/checkout@v4
23+ - name : Setup Ruby
24+ uses : ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0
25+ with :
26+ ruby-version : ' 3.3' # Not needed with a .ruby-version file
27+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
28+ cache-version : 0 # Increment this number if you need to re-download cached gems
29+ - name : Setup Pages
30+ id : pages
31+ uses : actions/configure-pages@v5
32+ - name : Build with Jekyll
33+ run : bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
34+ env :
35+ JEKYLL_ENV : production
36+ - name : Upload artifact
37+ uses : actions/upload-pages-artifact@v3
38+
39+ deploy :
40+ environment :
41+ name : github-pages
42+ url : ${{ steps.deployment.outputs.page_url }}
43+ runs-on : ubuntu-latest
44+ needs : build
45+ steps :
46+ - name : Deploy to GitHub Pages
47+ id : deployment
48+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 11---
22layout: home
33# Index page
4- ---
4+ ---
You can’t perform that action at this time.
0 commit comments