-
-
Notifications
You must be signed in to change notification settings - Fork 305
48 lines (42 loc) · 1000 Bytes
/
docs.yml
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
45
46
47
48
name: 'Docs Build'
on:
push:
branches-ignore:
- 'dependabot/**'
paths:
- 'docs/**'
- '.github/**/*docs*'
pull_request:
paths:
- 'docs/**'
- '.github/**/*docs*'
env:
LC_ALL: en_US.UTF-8
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
docs:
name: GitHub Pages
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: Gemfile
BUNDLE_PATH: vendor/bundle
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Git Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
- name: Set up Ruby
uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984
with:
ruby-version: 2.7
bundler-cache: true
working-directory: docs
- name: Build
run: |
./.github/scripts/docs.sh