Skip to content

Commit 8df4db2

Browse files
authored
Create pr-build.yml
1 parent 7416f92 commit 8df4db2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Diff for: .github/workflows/pr-build.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Pull Request Build
2+
3+
on:
4+
pull_request:
5+
branches: [ main, master ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: Download bootstrap file
14+
run: wget https://raw.githubusercontent.com/progit/progit2-pub/master/bootstrap.sh
15+
- name: Run bootstrap
16+
run: sh bootstrap.sh
17+
- name: Set up Ruby
18+
uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: 2.7
21+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
22+
23+
- name: Build book
24+
run: bundle exec rake book:build_action

0 commit comments

Comments
 (0)