mirror of
https://github.com/nextcloud/documentation.git
synced 2026-03-27 13:38:39 +07:00
85 lines
2.8 KiB
YAML
85 lines
2.8 KiB
YAML
name: "Pull Request Docs Check"
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
- stable*
|
|
|
|
jobs:
|
|
user_manual:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
|
|
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
|
|
with:
|
|
python-version: '3.12'
|
|
cache: 'pip'
|
|
- name: Install pip dependencies
|
|
run: pip install -r requirements.txt
|
|
- name: Build using Makefile
|
|
run: cd user_manual && make html
|
|
- name: Pack the results in local tar file
|
|
shell: bash
|
|
run: tar czf /tmp/documentation.tar.gz -C user_manual/_build/html .
|
|
- name: Upload static documentation
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
|
with:
|
|
name: User manual.zip
|
|
path: "/tmp/documentation.tar.gz"
|
|
|
|
user_manual-en:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
|
|
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
|
|
with:
|
|
python-version: '3.12'
|
|
- name: Install pip dependencies
|
|
run: pip install -r requirements.txt
|
|
- name: Build using Makefile
|
|
run: cd user_manual && make html-lang-en
|
|
|
|
developer_manual:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
|
|
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
|
|
with:
|
|
python-version: '3.12'
|
|
cache: 'pip'
|
|
- name: Install pip dependencies
|
|
run: pip install -r requirements.txt
|
|
- name: Build using Makefile
|
|
run: cd developer_manual && make html
|
|
- name: Pack the results in local tar file
|
|
shell: bash
|
|
run: tar czf /tmp/documentation.tar.gz -C developer_manual/_build/html/com .
|
|
- name: Upload static documentation
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
|
with:
|
|
name: Developer manual.zip
|
|
path: "/tmp/documentation.tar.gz"
|
|
|
|
admin_manual:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
|
|
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
|
|
with:
|
|
python-version: '3.12'
|
|
cache: 'pip'
|
|
- name: Install pip dependencies
|
|
run: pip install -r requirements.txt
|
|
- name: Build using Makefile
|
|
run: cd admin_manual && make html
|
|
- name: Pack the results in local tar file
|
|
shell: bash
|
|
run: tar czf /tmp/documentation.tar.gz -C admin_manual/_build/html/com .
|
|
- name: Upload static documentation
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
|
with:
|
|
name: Administration manual.zip
|
|
path: "/tmp/documentation.tar.gz"
|