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:
3535 uses : actions/checkout@v4
3636 with :
3737 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+
4439 - name : Setup Pages
4540 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 }}"
5051 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
5461 uses : actions/upload-pages-artifact@v3
62+ with :
63+ path : " _site${{ steps.pages.outputs.base_path }}"
5564
5665 # Deployment job
5766 deploy :
You can’t perform that action at this time.
0 commit comments