Skip to content

Commit

Permalink
ci: Set CI_PAGES_URL dynamically for GitHub and readthedocs.
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan committed Feb 1, 2024
1 parent 48cd057 commit ee89b0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ jobs:
with:
cache: true
python-version: '3.12'
- id: pages
name: Setup Pages
uses: actions/configure-pages@v4
- run: env | sort
- run: make dev-doc
- run: make doc
- env:
CI_PAGES_URL: ${{ steps.pages.outputs.base_url }}
run: make doc
- name: Upload changelog
uses: actions/upload-artifact@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ build:
- make doc-mypy
- make doc-coverage
post_checkout:
- env | sort
- git fetch --unshallow || true
post_install:
- python -m pip install --upgrade --no-cache-dir pdm
- make dev-doc
pre_build:
- make changelog
- CI_PAGES_URL=https://${READTHEDOCS_PROJECT}.readthedocs.io/${READTHEDOCS_LANGUAGE}/stable make changelog
os: ubuntu-22.04
tools:
python: '3'
Expand Down

0 comments on commit ee89b0a

Please sign in to comment.