From 5e36cf93a86dbc666816c2782f3eec7eb0750b19 Mon Sep 17 00:00:00 2001 From: George Melikov Date: Tue, 2 Jun 2020 21:16:52 +0300 Subject: [PATCH] Add man pages into CI --- .github/workflows/publish.yml | 12 ++++++++++-- .github/workflows/pull_request.yml | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f24fd1c..9dcbc09 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,9 +10,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - uses: ammaraskar/sphinx-action@master + - name: Prepare + run: | + sudo apt-get update -y + sudo apt-get install -y git python3-pip mandoc + pip install -r docs/requirements.txt + - name: Gen_man_pages + run: make man + - name: Gen_sphinx + uses: ammaraskar/sphinx-action@master with: - pre-build-command: "apt-get update -y && apt-get install -y git python3-pip && pip install -r docs/requirements.txt" + pre-build-command: "apt-get update -y && apt-get install -y git" docs-folder: "docs/" - name: Deploy uses: peaceiris/actions-gh-pages@v3 diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 93639c9..fa8d9ab 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -7,7 +7,15 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - uses: ammaraskar/sphinx-action@master + - name: Prepare + run: | + sudo apt-get update -y + sudo apt-get install -y git python3-pip mandoc + pip install -r docs/requirements.txt + - name: Gen_man_pages + run: make man + - name: Gen_sphinx + uses: ammaraskar/sphinx-action@master with: - pre-build-command: "apt-get update -y && apt-get install -y git python3-pip && pip install -r docs/requirements.txt" + pre-build-command: "apt-get update -y && apt-get install -y git" docs-folder: "docs/"