File tree Expand file tree Collapse file tree 1 file changed +22
-13
lines changed Expand file tree Collapse file tree 1 file changed +22
-13
lines changed Original file line number Diff line number Diff line change @@ -35,23 +35,32 @@ jobs:
35
35
uses : actions/checkout@v4
36
36
with :
37
37
submodules : true
38
- - name : Setup Ruby
39
- uses : ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
40
- with :
41
- ruby-version : ' 3.2' # Not needed with a .ruby-version file
42
- bundler-cache : true # runs 'bundle install' and caches installed gems automatically
43
- cache-version : 1 # Increment this number if you need to re-download cached gems
38
+
44
39
- name : Setup Pages
45
40
id : pages
46
- uses : actions/configure-pages@v5
47
- - name : Build with Jekyll
48
- # Outputs to the './_site' directory by default
49
- run : ./init.sh && bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
41
+ uses : actions/configure-pages@v4
42
+
43
+ - name : Setup Ruby
44
+ uses : ruby/setup-ruby@v1
45
+ with :
46
+ ruby-version : 3.3
47
+ bundler-cache : true
48
+
49
+ - name : Build site
50
+ run : bundle exec jekyll b -d "_site${{ steps.pages.outputs.base_path }}"
50
51
env :
51
- JEKYLL_ENV : production
52
- - name : Upload artifact
53
- # Automatically uploads an artifact from the './_site' directory by default
52
+ JEKYLL_ENV : " production"
53
+
54
+ - name : Test site
55
+ run : |
56
+ bundle exec htmlproofer _site \
57
+ \-\-disable-external \
58
+ \-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
59
+
60
+ - name : Upload site artifact
54
61
uses : actions/upload-pages-artifact@v3
62
+ with :
63
+ path : " _site${{ steps.pages.outputs.base_path }}"
55
64
56
65
# Deployment job
57
66
deploy :
You can’t perform that action at this time.
0 commit comments