From 0a4e4d2108292263ac0761e6e089150f7cc0a787 Mon Sep 17 00:00:00 2001 From: fw Date: Wed, 19 Jun 2024 05:51:13 +0000 Subject: [PATCH] update workflow --- .github/workflows/sphinx.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 94b3ad90..ab4dcf5c 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -4,11 +4,21 @@ on: push jobs: build: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest permissions: contents: write steps: - - uses: garrett4wade/sphinx-pages@master + - uses: actions/checkout@v4 + - name: Build HTML + uses: garrett4wade/sphinx-action@master + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: html-docs + path: docs/build/html/ + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + if: github.ref == 'refs/heads/main' with: github_token: ${{ secrets.GITHUB_TOKEN }} - create_readme: true \ No newline at end of file + publish_dir: docs/build/html \ No newline at end of file