forked from os-migrate/os-migrate
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1.42 KB
/
docs-build-pr.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
---
name: docs-build-pr
on:
pull_request:
branches:
- main
paths:
- 'docs/**'
jobs:
build:
if: github.repository_owner == 'os-migrate'
runs-on: ubuntu-latest
steps:
- name: Use checkout v2 with all git log available
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install dependencies
run: |
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
- name: Configure podman
run: |
mkdir -p ~/.config/containers
echo 'cgroup_manager = "cgroupfs"' >> ~/.config/containers/libpod.conf
echo '[storage]' >> ~/.config/containers/storage.conf
echo 'driver = "overlay"' >> ~/.config/containers/storage.conf
echo '[storage.options]' >> ~/.config/containers/storage.conf
echo 'mount_program = "/usr/bin/fuse-overlayfs"' >> ~/.config/containers/storage.conf
- name: Log into GitHub Container Registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | \
podman login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
- name: Fetch toolbox image
run: |
REUSE_TOOLBOX=1 NO_VAGRANT=1 make toolbox-build
- name: Render the documentation
run: |
./toolbox/run make docs
- uses: actions/upload-artifact@v1
with:
name: DocumentationHTML
path: docs/src/_build/html/