33# separate terms of service, privacy policy, and support
44# documentation.
55
6- # Sample workflow for building and deploying a Jekyll site to GitHub Pages
7- name : Deploy Jekyll site to Pages
6+ # Based on https://github.com/actions/starter-workflows/blob/main/pages/jekyll.yml
7+ name : Deploy Chulapa Jekyll site to Pages
88
99on :
1010 # Runs on pushes targeting the default branch
@@ -32,25 +32,34 @@ jobs:
3232 runs-on : ubuntu-latest
3333 env :
3434 GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
35- JEKYLL_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35+ JEKYLL_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to work out-of-the-box with jekyll-github-metadata
3636 steps :
3737 - name : Checkout
3838 uses : actions/checkout@v4
3939 - name : Setup Ruby
40+ # https://github.com/ruby/setup-ruby/releases/tag/v1.207.0
4041 uses : ruby/setup-ruby@v1
4142 with :
42- ruby-version : ' 3.1'
43- bundler-cache : true #
44- cache-version : 9999
43+ ruby-version : ' 3.1' # Not needed with a .ruby-version file
44+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
45+ cache-version : 1 # Increment this number if you need to re-download cached gems
46+ working-directory : ' .' # Default directory of the site, change it to 'docs' if the site is hosted in (e.g.) 'docs' folder
4547 - name : Setup Pages
4648 id : pages
4749 uses : actions/configure-pages@v5
4850 - name : Build with Jekyll
49- run : bundle exec jekyll build --incremental --baseurl "${{ steps.pages.outputs.base_path }}"
51+ # Outputs to the './_site' directory by default
52+ run : |
53+ cd . # Change it to 'docs' if the site is hosted in (e.g.) 'docs' folder
54+ bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
55+ shell : bash
5056 env :
5157 JEKYLL_ENV : production
5258 - name : Upload artifact
59+ # Automatically uploads an artifact from the './_site' directory by default
5360 uses : actions/upload-pages-artifact@v3
61+ with :
62+ path : _site/ # Change it to 'docs/_site/' if the site is hosted in (e.g.) 'docs' folder
5463
5564 # Deployment job
5665 deploy :
6271 steps :
6372 - name : Deploy to GitHub Pages
6473 id : deployment
65- uses : actions/deploy-pages@v4
74+ uses : actions/deploy-pages@v4
0 commit comments