Skip to content

Commit

Permalink
add force update
Browse files Browse the repository at this point in the history
  • Loading branch information
StardustDL committed Feb 5, 2024
1 parent 5355198 commit a364521
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions index/std.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a364521

Please sign in to comment.