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-
61# Sample workflow for building and deploying a Jekyll site to GitHub Pages
7- name : Deploy Jekyll site to Pages
2+ name : Deploy Jekyll with GitHub Pages dependencies preinstalled
83
94on :
105 # Runs on pushes targeting the default branch
116 push :
12- branches : [$default-branch]
7+ branches :
8+ - main
139
1410 # Allows you to run this workflow manually from the Actions tab
1511 workflow_dispatch :
@@ -33,29 +29,14 @@ jobs:
3329 steps :
3430 - name : Checkout
3531 uses : actions/checkout@v4
36- - name : Setup Ruby
37- # https://github.com/ruby/setup-ruby/releases/tag/v1.207.0
38- uses : ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4
39- with :
40- ruby-version : ' 3.1' # Not needed with a .ruby-version file
41- bundler-cache : true # runs 'bundle install' and caches installed gems automatically
42- cache-version : 0 # Increment this number if you need to re-download cached gems
43- - name : Install dependencies
44- run : bundle install
4532 - name : Setup Pages
46- # id: pages
4733 uses : actions/configure-pages@v5
4834 - name : Build with Jekyll
49- # Outputs to the './_site' directory by default
50- # run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
51- # env:
52- # JEKYLL_ENV: production
5335 uses : actions/jekyll-build-pages@v1
5436 with :
5537 source : ./
5638 destination : ./_site
5739 - name : Upload artifact
58- # Automatically uploads an artifact from the './_site' directory by default
5940 uses : actions/upload-pages-artifact@v3
6041
6142 # Deployment job
0 commit comments