-
Notifications
You must be signed in to change notification settings - Fork 141
44 lines (36 loc) · 919 Bytes
/
pr_build.yml
File metadata and controls
44 lines (36 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Pull Request Flow
on:
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Utils
run: sudo apt-get install -y bsdmainutils
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- name: Build Book
run: bundle exec rake book:build
- name: Validate Book
run: bundle exec rake book:check
- name: 'Save Artifacts'
uses: actions/upload-artifact@v6
with:
name: Build Artifacts
path: |
book/contributors.txt
attributes-ru.adoc
progit.epub
progit.fb2.zip
progit.mobi
progit.pdf
progit.html
retention-days: 7