Skip to content

Commit

Permalink
ci: apply PDM_NO_EDITABLE for docs release (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan authored Feb 28, 2024
1 parent 3a8869f commit d2b1a8e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Setup pages
uses: actions/configure-pages@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d # v4.0.0
- run: env | sort
- run: make dev-doc
- run: PDM_NO_EDITABLE=true make dev-doc
- run: CI_PAGES_URL=${{ steps.pages.outputs.base_url }} make doc
- name: Generate release notes
run: make release-notes > release-notes.md
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pages-build:
rules:
- if: $CI_COMMIT_TAG =~ /^v?(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-?(a|b|rc)(0|[1-9][0-9]*)?)?$/
script:
- make dev-doc
- PDM_NO_EDITABLE=true make dev-doc
- make doc
- make release-notes > release-notes.md
stage: release
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build:
- git fetch --unshallow || true
post_install:
- python -m pip install --upgrade --no-cache-dir pdm
- make dev-doc
- PDM_NO_EDITABLE=true make dev-doc
pre_build:
- CI_PAGES_URL=https://${READTHEDOCS_PROJECT}.readthedocs.io/${READTHEDOCS_LANGUAGE}/stable make changelog
os: ubuntu-22.04
Expand Down
2 changes: 1 addition & 1 deletion template/.readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build:
- git fetch --unshallow || true
post_install:
- python -m pip install --upgrade --no-cache-dir pdm
- make dev-doc
- PDM_NO_EDITABLE=true make dev-doc
pre_build:
- CI_PAGES_URL=https://${READTHEDOCS_PROJECT}.readthedocs.io/${READTHEDOCS_LANGUAGE}/stable make changelog
os: ubuntu-22.04
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: Setup pages
uses: actions/configure-pages@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d # v4.0.0
- run: env | sort
- run: make dev-doc
- run: PDM_NO_EDITABLE=true make dev-doc
- run: CI_PAGES_URL={{ '${{ steps.pages.outputs.base_url }}' }} make doc
- name: Generate release notes
run: make release-notes > release-notes.md
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pages-build:
rules:
- if: $CI_COMMIT_TAG =~ /^v?(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-?(a|b|rc)(0|[1-9][0-9]*)?)?$/
script:
- make dev-doc
- PDM_NO_EDITABLE=true make dev-doc
- make doc
- make release-notes > release-notes.md
stage: release
Expand Down

0 comments on commit d2b1a8e

Please sign in to comment.