File tree Expand file tree Collapse file tree 1 file changed +14
-17
lines changed
Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Original file line number Diff line number Diff line change 1111jobs :
1212 build :
1313 runs-on : ubuntu-latest
14- if : github.ref != 'refs/heads/main'
1514 steps :
16- - uses : actions/checkout@v2
15+ - uses : actions/checkout@v4
1716
1817 - name : Set up Ruby
1918 uses : ruby/setup-ruby@v1
2019 with :
21- ruby-version : 3.2
20+ ruby-version : 3.4
2221 bundler-cache : true
2322
2423 - name : Build the site
@@ -28,26 +27,24 @@ jobs:
2827 ./bin/data-update
2928 bundle exec jekyll build
3029
30+ - name : Upload artifact
31+ uses : actions/upload-artifact@v4
32+ with :
33+ name : _site
34+ path : _site
35+
3136 deploy :
3237 runs-on : ubuntu-latest
38+ needs : build
3339 if : github.ref == 'refs/heads/main'
3440 steps :
35- - uses : actions/checkout@v2
36-
37- - name : Set up Ruby
38- uses : ruby/setup-ruby@v1
41+ - name : Download artifact
42+ uses : actions/download-artifact@v4
3943 with :
40- ruby-version : 3.2
41- bundler-cache : true
42-
43- - name : Build the site
44- env :
45- JEKYLL_ENV : production
46- run : |
47- ./bin/data-update
48- bundle exec jekyll build
44+ name : _site
45+ path : _site
4946
50- - name : deploy
47+ - name : Deploy to GitHub Pages
5148 uses : peaceiris/actions-gh-pages@v3
5249 with :
5350 github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments