File tree Expand file tree Collapse file tree 1 file changed +18
-5
lines changed
Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change 1+ # This workflow uses actions that are not certified by GitHub.
2+ # They are provided by a third-party and are governed by
3+ # separate terms of service, privacy policy, and support
4+ # documentation.
5+
16# Sample workflow for building and deploying a Jekyll site to GitHub Pages
2- name : Deploy Jekyll with GitHub Pages dependencies preinstalled
7+ name : Deploy Jekyll site to Pages
38
49on :
510 # Runs on pushes targeting the default branch
@@ -28,14 +33,22 @@ jobs:
2833 steps :
2934 - name : Checkout
3035 uses : actions/checkout@v4
36+ - name : Setup Ruby
37+ uses : ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
38+ with :
39+ ruby-version : ' 3.1' # Not needed with a .ruby-version file
40+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
41+ cache-version : 0 # Increment this number if you need to re-download cached gems
3142 - name : Setup Pages
43+ id : pages
3244 uses : actions/configure-pages@v5
3345 - name : Build with Jekyll
34- uses : actions/jekyll-build-pages@v1
35- with :
36- source : ./
37- destination : ./_site
46+ # Outputs to the './_site' directory by default
47+ run : bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
48+ env :
49+ JEKYLL_ENV : production
3850 - name : Upload artifact
51+ # Automatically uploads an artifact from the './_site' directory by default
3952 uses : actions/upload-pages-artifact@v3
4053
4154 # Deployment job
You can’t perform that action at this time.
0 commit comments