From a82e4127f9c0c524a91a476c86f6f7c06c1f58be Mon Sep 17 00:00:00 2001 From: Matt Wozniski Date: Mon, 20 May 2024 10:28:31 -0400 Subject: [PATCH] docs: Publish docs on every PR, not just releases We can revert this later, but it will be helpful to us during the PyCon US 2024 sprints. Signed-off-by: Matt Wozniski --- .github/workflows/build_wheels.yml | 31 ------------------------ .github/workflows/docs.yml | 38 ++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 31 deletions(-) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index efceb104ca..08f2e60216 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -200,34 +200,3 @@ jobs: with: skip_existing: true password: ${{ secrets.PYPI_PASSWORD }} - - publish_docs: - name: Publish docs - runs-on: ubuntu-latest - if: github.event_name == 'release' && github.event.action == 'published' - permissions: - contents: write - steps: - - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.10" - - name: Set up dependencies - run: | - sudo apt-get update - sudo apt-get install -qy clang-format npm libunwind-dev liblz4-dev pkg-config - - name: Install Python dependencies - run: | - python3 -m pip install -r requirements-extra.txt - - name: Install Package - run: | - python3 -m pip install -e . - - name: Build docs - run: | - make docs - - name: Publish docs to GitHub Pages - uses: JamesIves/github-pages-deploy-action@v4 - with: - folder: docs/_build/html - single-commit: true diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000000..f0cdee560a --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,38 @@ +name: Docs + +on: + push: + branches: + - main + +jobs: + publish_docs: + name: Publish docs + runs-on: ubuntu-latest + #if: github.event_name == 'release' && github.event.action == 'published' + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.10" + - name: Set up dependencies + run: | + sudo apt-get update + sudo apt-get install --no-install-recommends -qy libunwind-dev liblz4-dev pkg-config + - name: Install Python dependencies + run: | + python3 -m pip install -r requirements-extra.txt + - name: Install Package + run: | + python3 -m pip install -e . + - name: Build docs + run: | + make docs + - name: Publish docs to GitHub Pages + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: docs/_build/html + single-commit: true