Skip to content

Commit b3cfac8

Browse files
Merge pull request #430 from friederbluemle/update-gh-actions
Use ruby/setup-ruby for GH Actions
2 parents bfe72ab + 6936052 commit b3cfac8

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
name: ci
22
on:
33
push:
4-
branches: '*'
4+
branches: [ '*' ]
55
pull_request:
66
jobs:
77
build:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v2
11-
- uses: actions/setup-ruby@v1
12-
- run: bundle install
11+
- uses: ruby/setup-ruby@v1
12+
with:
13+
ruby-version: 2.7.2
14+
bundler-cache: true
1315
- run: bundle exec jekyll build

.github/workflows/gh-pages.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
name: gh-pages
22
on:
33
push:
4-
branches: master
4+
branches: [ master ]
55
jobs:
66
deploy:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10-
- uses: actions/setup-ruby@v1
11-
- run: bundle install
10+
- uses: ruby/setup-ruby@v1
11+
with:
12+
ruby-version: 2.7.2
13+
bundler-cache: true
1214
- run: bundle exec jekyll build
1315
- id: cname
1416
run: |

0 commit comments

Comments
 (0)