Skip to content

Commit

Permalink
Use my action
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanx749 committed Nov 14, 2023
1 parent bff8c61 commit 98d18ef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 82 deletions.
35 changes: 8 additions & 27 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,7 @@ on:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install -U pip
pip install -r docs/requirements.txt
- name: Build HTML
run: make html
working-directory: docs
env:
doc_format: ${{ inputs.doc_format }}
- name: Upload artifacts
uses: actions/upload-pages-artifact@v2
with:
path: docs/_build/html/

deploy:
needs: build
build-deploy:
permissions:
pages: write
id-token: write
Expand All @@ -48,6 +25,10 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
- id: deployment
uses: yuanx749/auto-sphinx-page-action@main
with:
sourcedir: docs
requirements: docs/requirements.txt
env:
doc_format: ${{ inputs.doc_format }}
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

35 changes: 0 additions & 35 deletions docs/make.bat

This file was deleted.

0 comments on commit 98d18ef

Please sign in to comment.