@@ -2,8 +2,8 @@ name: Deploy Jekyll site to Pages
22
33on :
44 push :
5- branches : [ "main" ] # Triggers on pushes to main branch
6- workflow_dispatch : # Allows manual trigger from Actions tab
5+ branches : [ "main" ]
6+ workflow_dispatch :
77
88permissions :
99 contents : read
@@ -12,34 +12,31 @@ permissions:
1212
1313concurrency :
1414 group : " pages"
15- cancel-in-progress : false # Prevents multiple runs from queuing
15+ cancel-in-progress : false
1616
1717jobs :
1818 build :
1919 runs-on : ubuntu-latest
2020 steps :
2121 - name : Checkout
22- uses : actions/checkout@v4 # Gets your repo code
22+ uses : actions/checkout@v4
2323
2424 - name : Setup Ruby
2525 uses : ruby/setup-ruby@v1
2626 with :
27- ruby-version : ' 3.3' # Or whatever your Gemfile needs ( Chirpy often uses 3.1+)
28- bundler-cache : true # Caches gems for faster runs
27+ ruby-version : ' 3.3' # Works well with Chirpy; change to 3.1 if needed
28+ bundler-cache : true
2929
3030 - name : Install dependencies
31- run : bundle install # Installs jekyll-theme-chirpy + other gems
32-
33- # Chirpy-specific steps (these run bash scripts to generate extra files like tags/categories)
34- - name : Build Chirpy extras
35- run : |
36- bash tools/run.sh # Or similar; generates _site-ready files
31+ run : bundle install
3732
3833 - name : Build with Jekyll
39- run : bundle exec jekyll build --verbose # Builds the static site
34+ env :
35+ JEKYLL_ENV : production
36+ run : bundle exec jekyll build --verbose
4037
4138 - name : Upload artifact
42- uses : actions/upload-pages-artifact@v3 # Prepares built site for deployment
39+ uses : actions/upload-pages-artifact@v3
4340
4441 deploy :
4542 environment :
5047 steps :
5148 - name : Deploy to GitHub Pages
5249 id : deployment
53- uses : actions/deploy-pages@v4 # Deploys the artifact to your Pages site
50+ uses : actions/deploy-pages@v4
0 commit comments