From fdd93ca4808e675cc69af343ca40c686a07f7387 Mon Sep 17 00:00:00 2001 From: Yinan Qin <39023210+elysia-best@users.noreply.github.com> Date: Mon, 5 May 2025 12:49:09 +0800 Subject: [PATCH 1/4] fix(ci): change to upload.pypi.org/legacy/ --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a381ea..4c4857e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -163,5 +163,7 @@ jobs: - name: Publish distribution 📦 to PyPI if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://upload.pypi.org/legacy/ From 528986910741712da10086db187539e5fd9d5fc1 Mon Sep 17 00:00:00 2001 From: Yinan Qin <39023210+elysia-best@users.noreply.github.com> Date: Mon, 5 May 2025 12:52:32 +0800 Subject: [PATCH 2/4] fix: add multiple dir for dists --- .github/workflows/build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4c4857e..8fc82b8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -154,16 +154,23 @@ jobs: path: dist/ merge-multiple: true + - name: Prepare pacakges + run: | + cp -r dist test_dist + cp -r dist release_dist + - name: Publish distribution 📦 to Test PyPI if: github.event_name == 'push' uses: pypa/gh-action-pypi-publish@release/v1 with: + packages-dir: test_dist/ repository-url: https://test.pypi.org/legacy/ - name: Publish distribution 📦 to PyPI if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 with: + packages-dir: release_dist/ repository-url: https://upload.pypi.org/legacy/ From 77ab44c1af751d01235cc4902d7bf11330419051 Mon Sep 17 00:00:00 2001 From: Yinan Qin <39023210+elysia-best@users.noreply.github.com> Date: Mon, 5 May 2025 12:53:00 +0800 Subject: [PATCH 3/4] Update build.yml --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8fc82b8..1c8ce59 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -144,7 +144,6 @@ jobs: runs-on: ubuntu-latest environment: name: pypi - url: https://pypi.org/p/LingmoUIPy permissions: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing steps: From 74f9d26ecf6110464b8be045c11eb40e3df5c308 Mon Sep 17 00:00:00 2001 From: Yinan Qin <39023210+elysia-best@users.noreply.github.com> Date: Mon, 5 May 2025 12:53:46 +0800 Subject: [PATCH 4/4] Update .github/workflows/build.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1c8ce59..b4271ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -153,7 +153,7 @@ jobs: path: dist/ merge-multiple: true - - name: Prepare pacakges + - name: Prepare packages run: | cp -r dist test_dist cp -r dist release_dist