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
-
6
1
# 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
8
3
9
4
on :
10
5
# Runs on pushes targeting the default branch
11
6
push :
12
- branches : [$default-branch]
7
+ branches :
8
+ - main
13
9
14
10
# Allows you to run this workflow manually from the Actions tab
15
11
workflow_dispatch :
@@ -33,29 +29,14 @@ jobs:
33
29
steps :
34
30
- name : Checkout
35
31
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
45
32
- name : Setup Pages
46
- # id: pages
47
33
uses : actions/configure-pages@v5
48
34
- 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
53
35
uses : actions/jekyll-build-pages@v1
54
36
with :
55
37
source : ./
56
38
destination : ./_site
57
39
- name : Upload artifact
58
- # Automatically uploads an artifact from the './_site' directory by default
59
40
uses : actions/upload-pages-artifact@v3
60
41
61
42
# Deployment job
0 commit comments