Skip to content

Commit

Permalink
fix: build.py
Browse files Browse the repository at this point in the history
  • Loading branch information
moesnow committed Sep 17, 2023
1 parent 63b8dc1 commit e5ad24c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Move 3rdparty to dist directory
if: startsWith(github.ref, 'refs/tags/')
run: |
python build.py
python build.py github-actions
xcopy .\3rdparty\ .\dist\March7thAssistant_${{ github.ref_name }}\3rdparty\ /E /I /Y
powershell Copy-Item -Path .\assets\config\config.example.yaml -Destination .\dist\March7thAssistant_${{ github.ref_name }}\config.yaml -Force
Expand Down
4 changes: 4 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
from tasks.weekly.universe import Universe
import sys

if len(sys.argv) > 1 and sys.argv[1] == "github-actions":
from managers.config_manager import config
config.set_value("github_mirror", "")

if not InstallOcr.run() or not Universe.update():
sys.exit(1)

0 comments on commit e5ad24c

Please sign in to comment.