From d2b1a8e67022d705444d4c113f2841f52c57c5b6 Mon Sep 17 00:00:00 2001 From: "Xuan (Sean) Hu" Date: Wed, 28 Feb 2024 18:39:27 +0800 Subject: [PATCH] ci: apply PDM_NO_EDITABLE for docs release (#342) --- .github/workflows/release.yml | 2 +- .gitlab/workflows/release.yml | 2 +- .readthedocs.yaml | 2 +- template/.readthedocs.yaml | 2 +- .../workflows/release.yml.jinja | 2 +- .../workflows/release.yml.jinja | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 70873c3b..f3a6152b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.gitlab/workflows/release.yml b/.gitlab/workflows/release.yml index 257c04ad..cd812867 100644 --- a/.gitlab/workflows/release.yml +++ b/.gitlab/workflows/release.yml @@ -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 diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 526daa88..929a6438 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -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 diff --git a/template/.readthedocs.yaml b/template/.readthedocs.yaml index 526daa88..929a6438 100644 --- a/template/.readthedocs.yaml +++ b/template/.readthedocs.yaml @@ -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 diff --git a/template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/release.yml.jinja b/template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/release.yml.jinja index 03a9f273..50c36499 100644 --- a/template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/release.yml.jinja +++ b/template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/release.yml.jinja @@ -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 diff --git a/template/[% if repo_host_type == 'gitlab.com' or repo_host_type == 'gitlab-self-managed' %].gitlab[% endif %]/workflows/release.yml.jinja b/template/[% if repo_host_type == 'gitlab.com' or repo_host_type == 'gitlab-self-managed' %].gitlab[% endif %]/workflows/release.yml.jinja index e38b0135..02f50041 100644 --- a/template/[% if repo_host_type == 'gitlab.com' or repo_host_type == 'gitlab-self-managed' %].gitlab[% endif %]/workflows/release.yml.jinja +++ b/template/[% if repo_host_type == 'gitlab.com' or repo_host_type == 'gitlab-self-managed' %].gitlab[% endif %]/workflows/release.yml.jinja @@ -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