From a364521825b187da8076a7bf5bcde3329fc1823e Mon Sep 17 00:00:00 2001 From: StardustDL Date: Mon, 5 Feb 2024 20:10:02 +0800 Subject: [PATCH] add force update --- .github/workflows/ci.yml | 4 ++++ index/std.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ee1d20..8cc27e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,10 @@ jobs: run: | git fetch origin gh-pages git worktree add ./dist gh-pages + - name: Force update + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + run: | + rm ./dist/process.json - name: Run run: | python -m index diff --git a/index/std.py b/index/std.py index 85569a4..8c4c888 100644 --- a/index/std.py +++ b/index/std.py @@ -34,6 +34,8 @@ def removeMain(path: Path): for item in path.glob("**/__main__.py"): if not item.is_file(): continue + if "pip" in path.parts: + continue toRemove.append(item) for item in toRemove: os.remove(item)