Skip to content

Cleanup CI configs #816

Cleanup CI configs

Cleanup CI configs #816

Workflow file for this run

name: "Docs"
on:
push:
branches:
- main
tags:
- '[0-9]+.[0-9]+.[0-9]+'
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
egress-policy: audit
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5.0.0
- name: Install Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: '3.13'
- name: Install documentation requirements
run: |
pip install .[docs]
pip install sphinx_design
- name: Build docs
run: "make -C doc html"
landing-page:
name: Landing page
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
egress-policy: audit
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5.0.0
- name: Setup Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: "3.13"
- name: Install dependencies
run: |
pip install .[docs]
pip install sphinx_design
- name: Build landing-page
run: "make -C doc/landing-page html"
- name: Publish
if: github.ref == 'refs/heads/main'
uses: tsunematsu21/actions-publish-gh-pages@c04b531c52b8f9d25c596bc6e6a7ddc116b2f3f8 # v1.0.2
with:
dir: doc/landing-page/_build/html
repo: dfetch-org/dfetch-org.github.io
branch: main
token: ${{ secrets.GH_DFETCH_ORG_DEPLOY }}