Skip to content

Commit

Permalink
Also fix gh_pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Oct 7, 2023
1 parent 7964db5 commit fff2b50
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/gh_pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,34 +33,46 @@ jobs:

build:
runs-on: ubuntu-latest

steps:

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ github.repository }}
fetch-depth: 0 # full checkout required for `git describe`

- name: Install deps & pypdfium2
run: |
python3 -m pip install -r req/docs.txt
python3 -m pip install -e .
python3 -m pip install .
- name: Build documentation
run: ./run docs-build

- name: Remove unnecessary files
run: |
cd docs/build/html
rm -rf .doctrees/
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'docs/build/html'

publish:
needs: build
runs-on: ubuntu-latest

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest

steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit fff2b50

Please sign in to comment.