-
Notifications
You must be signed in to change notification settings - Fork 23
40 lines (33 loc) · 903 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
name: Docs
on:
pull_request:
push:
branches:
- main
jobs:
docs:
runs-on: ubuntu-20.04
env:
RPM_PY_SYS: true
steps:
- uses: actions/checkout@v2
- name: Disable Jekyll
if: github.ref == 'refs/heads/main'
shell: bash
run: mkdir -p docs/_build/html/ && touch docs/_build/html/.nojekyll
- name: Get package list
id: packages
shell: bash
run: |
echo ::set-output name=packages::$(sed 's/#.*//' yum-packages-devel.txt)
- name: Build docs
uses: fedora-python/tox-github-action
with:
dnf_install: ${{ steps.packages.outputs.packages }}
tox_env: docs
- name: Deploy docs
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: gh-pages
folder: docs/_build/html