From ae400910b7fbcbed9f6865991990018d3e849d92 Mon Sep 17 00:00:00 2001 From: rafa-be Date: Mon, 7 Oct 2024 17:21:07 +0200 Subject: [PATCH] Adds a GitHub Action that publishes the Pargraph docs. Signed-off-by: rafa-be --- .github/workflows/documentation.yml | 41 +++++++++++++++++++++++++++++ pargraph/about.py | 2 +- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/documentation.yml diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 0000000..80ca00b --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,41 @@ +name: Publish documentation to GitHub Pages + +on: + release: + types: [created] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python 3.8 + uses: actions/setup-python@v5 + with: + python-version: "3.8" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -r docs/requirements.txt + + - name: Build documentation + run: cd docs && make html + + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + path: './docs/build/html' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/pargraph/about.py b/pargraph/about.py index deded32..732155f 100644 --- a/pargraph/about.py +++ b/pargraph/about.py @@ -1 +1 @@ -__version__ = "0.8.2" +__version__ = "0.8.3"