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 11
11
jobs :
12
12
build :
13
13
runs-on : ubuntu-latest
14
- if : github.ref != 'refs/heads/main'
15
14
steps :
16
- - uses : actions/checkout@v2
15
+ - uses : actions/checkout@v4
17
16
18
17
- name : Set up Ruby
19
18
uses : ruby/setup-ruby@v1
20
19
with :
21
- ruby-version : 3.2
20
+ ruby-version : 3.4
22
21
bundler-cache : true
23
22
24
23
- name : Build the site
@@ -28,26 +27,24 @@ jobs:
28
27
./bin/data-update
29
28
bundle exec jekyll build
30
29
30
+ - name : Upload artifact
31
+ uses : actions/upload-artifact@v4
32
+ with :
33
+ name : _site
34
+ path : _site
35
+
31
36
deploy :
32
37
runs-on : ubuntu-latest
38
+ needs : build
33
39
if : github.ref == 'refs/heads/main'
34
40
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
39
43
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
49
46
50
- - name : deploy
47
+ - name : Deploy to GitHub Pages
51
48
uses : peaceiris/actions-gh-pages@v3
52
49
with :
53
50
github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments