Skip to content

[pre-commit.ci] pre-commit autoupdate #912

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #912

Workflow file for this run

name: Documentation
on: [push, pull_request]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update apt
run: sudo apt-get update
- name: Install apt deps
run: sudo apt-get install -y libbluetooth-dev libusb-1.0-0-dev libgudev-1.0-dev unixodbc-dev libdbi-dev libdbd-sqlite3 libdbd-mysql libdbd-pgsql cmake cmake-data doxygen latexmk texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra graphviz
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install Python deps
run: pip install -r docs/manual/requirements.txt
- name: Configure build
run: ./configure
- name: Build HTML docs
run: make manual-html
- name: Build PDF docs
run: make manual-pdf
- name: Collect
run: |
mkdir gh-pages
cp -r build-configure/docs/manual/html/* gh-pages/
cp build-configure/docs/manual/latex/*.pdf gh-pages/
- uses: actions/upload-artifact@v4.3.6
with:
name: Documentation
path: gh-pages
- name: Deploy
uses: peaceiris/actions-gh-pages@v4.0.0
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./gh-pages
cname: docs.gammu.org