mirror of
https://github.com/nextcloud/documentation.git
synced 2026-03-27 13:38:39 +07:00
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6.0.0 to 7.0.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](b7c566a772...bbbca2ddaa)
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-version: 7.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
105 lines
3.3 KiB
YAML
105 lines
3.3 KiB
YAML
name: "Build documentation"
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
- stable*
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
user_manual:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
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@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
|
with:
|
|
name: User manual.zip
|
|
path: "/tmp/documentation.tar.gz"
|
|
|
|
user_manual-en:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
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-lang-en
|
|
|
|
developer_manual:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
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@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
|
with:
|
|
name: Developer manual.zip
|
|
path: "/tmp/documentation.tar.gz"
|
|
|
|
admin_manual:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
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@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
|
with:
|
|
name: Administration manual.zip
|
|
path: "/tmp/documentation.tar.gz"
|