From ded4169cb22b2abaf1fe42612c24c308a98aa168 Mon Sep 17 00:00:00 2001 From: Carsten Ehbrecht Date: Fri, 6 Dec 2024 18:19:57 +0100 Subject: [PATCH] added workflow to build docs --- .github/workflows/main.yml | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..0cf4e95 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,49 @@ +name: build ⚙️ + +on: + push: + branches: + - master + pull_request: + +concurrency: + # For a given workflow, if we push to the same branch, cancel all previous builds on that branch except on master. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} + +permissions: + contents: read + +jobs: + + docs: + name: Docs (Python${{ matrix.python-version }}) + needs: lint + runs-on: ubuntu-latest + strategy: + matrix: + python-version: + - "3.10" + steps: + - name: Harden Runner + uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 + with: + disable-sudo: true + egress-policy: block + allowed-endpoints: > + files.pythonhosted.org:443 + github.com:443 + pypi.org:443 + - name: Checkout Repository + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - name: Setup Python${{ matrix.python-version }} + uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 + with: + python-version: ${{ matrix.python-version }} + cache: pip + - name: Install mkdocs-material 📦 + run: | + python -m pip install mkdocs-material + - name: Build Docs 📚 + run: | + make docs