Adding upstream version 4.6.0+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f3ad83a1a5
commit
7791e7adfd
230 changed files with 24945 additions and 0 deletions
78
.github/workflows/docspublish.yml
vendored
Normal file
78
.github/workflows/docspublish.yml
vendored
Normal file
|
@ -0,0 +1,78 @@
|
|||
name: Publish documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
update-cli-screenshots:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||
fetch-depth: 0
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.x"
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install -U pip poetry poethepoet
|
||||
poetry --version
|
||||
poetry install --only main,script
|
||||
- name: Update CLI screenshots
|
||||
run: |
|
||||
poetry doc:screenshots
|
||||
- name: Commit and push updated CLI screenshots
|
||||
run: |
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git add docs/images/cli_help
|
||||
|
||||
if [[ -n "$(git status --porcelain)" ]]; then
|
||||
git commit -m "docs(cli/screenshots): update CLI screenshots" -m "[skip ci]"
|
||||
git push
|
||||
else
|
||||
echo "No changes to commit. Skipping."
|
||||
fi
|
||||
|
||||
publish-documentation:
|
||||
runs-on: ubuntu-latest
|
||||
needs: update-cli-screenshots
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
|
||||
fetch-depth: 0
|
||||
- name: Pull latest changes
|
||||
run: |
|
||||
git pull origin master
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.x"
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install -U pip poetry poethepoet
|
||||
poetry --version
|
||||
poetry install --no-root --only documentation
|
||||
- name: Build docs
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
poetry doc:build
|
||||
- name: Generate Sponsors 💖
|
||||
uses: JamesIves/github-sponsors-readme-action@v1
|
||||
with:
|
||||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN_FOR_ORG }}
|
||||
file: "docs/README.md"
|
||||
- name: Push doc to Github Page
|
||||
uses: peaceiris/actions-gh-pages@v4
|
||||
with:
|
||||
personal_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||
publish_branch: gh-pages
|
||||
publish_dir: ./site
|
||||
user_name: "github-actions[bot]"
|
||||
user_email: "github-actions[bot]@users.noreply.github.com"
|
Loading…
Add table
Add a link
Reference in a new issue