mirror of
https://github.com/nextcloud/documentation.git
synced 2026-04-12 06:09:39 +07:00
build: use requirements file from 28 and adjust build logic
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
14
.github/workflows/generate_catalog_templates.yml
vendored
14
.github/workflows/generate_catalog_templates.yml
vendored
@@ -12,13 +12,15 @@ jobs:
|
||||
user_manual:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: ammaraskar/sphinx-action@master
|
||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
|
||||
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
|
||||
with:
|
||||
docs-folder: "user_manual/"
|
||||
pre-build-command: pip install -r requirements.txt
|
||||
build-command: make gettext
|
||||
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 gettext
|
||||
|
||||
- uses: peter-evans/create-pull-request@v5
|
||||
id: cpr
|
||||
|
||||
27
.github/workflows/sphinxbuild.yml
vendored
27
.github/workflows/sphinxbuild.yml
vendored
@@ -11,10 +11,11 @@ jobs:
|
||||
user_manual:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
|
||||
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
python-version: '3.12'
|
||||
cache: 'pip'
|
||||
- name: Install pip dependencies
|
||||
run: pip install -r requirements.txt
|
||||
- name: Build using Makefile
|
||||
@@ -23,7 +24,7 @@ jobs:
|
||||
shell: bash
|
||||
run: tar czf /tmp/documentation.tar.gz -C user_manual/_build/html .
|
||||
- name: Upload static documentation
|
||||
uses: actions/upload-artifact@v3.1.2
|
||||
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
||||
with:
|
||||
name: User manual.zip
|
||||
path: "/tmp/documentation.tar.gz"
|
||||
@@ -43,10 +44,11 @@ jobs:
|
||||
developer_manual:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
|
||||
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
python-version: '3.12'
|
||||
cache: 'pip'
|
||||
- name: Install pip dependencies
|
||||
run: pip install -r requirements.txt
|
||||
- name: Build using Makefile
|
||||
@@ -55,7 +57,7 @@ jobs:
|
||||
shell: bash
|
||||
run: tar czf /tmp/documentation.tar.gz -C developer_manual/_build/html/com .
|
||||
- name: Upload static documentation
|
||||
uses: actions/upload-artifact@v3.1.2
|
||||
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
||||
with:
|
||||
name: Developer manual.zip
|
||||
path: "/tmp/documentation.tar.gz"
|
||||
@@ -63,10 +65,11 @@ jobs:
|
||||
admin_manual:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
|
||||
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
python-version: '3.12'
|
||||
cache: 'pip'
|
||||
- name: Install pip dependencies
|
||||
run: pip install -r requirements.txt
|
||||
- name: Build using Makefile
|
||||
@@ -75,7 +78,7 @@ jobs:
|
||||
shell: bash
|
||||
run: tar czf /tmp/documentation.tar.gz -C admin_manual/_build/html/com .
|
||||
- name: Upload static documentation
|
||||
uses: actions/upload-artifact@v3.1.2
|
||||
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
||||
with:
|
||||
name: Administration manual.zip
|
||||
path: "/tmp/documentation.tar.gz"
|
||||
|
||||
Reference in New Issue
Block a user