mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-07 21:09:52 +00:00
ci: hyperbole should import requests only when needed
This commit is contained in:
parent
4aafb5e2da
commit
08372d972c
1
.github/workflows/master.yml
vendored
1
.github/workflows/master.yml
vendored
@ -29,7 +29,6 @@ jobs:
|
||||
|
||||
- name: Run build script
|
||||
run: |
|
||||
pip install requests
|
||||
export HY_APP_PLATFORMS=$(sed 's/\r$//' platforms.txt | awk '!/^#/ && !/^$/' | paste -sd ",")
|
||||
python hyperbole.py build -r
|
||||
|
||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -28,7 +28,6 @@ jobs:
|
||||
|
||||
- name: Run build script
|
||||
run: |
|
||||
pip install requests
|
||||
export HY_APP_PLATFORMS=$(sed 's/\r$//' platforms.txt | awk '!/^#/ && !/^$/' | paste -sd ",")
|
||||
python hyperbole.py build -r
|
||||
|
||||
@ -46,4 +45,5 @@ jobs:
|
||||
- name: Publish to API
|
||||
run: |
|
||||
export HY_API_POST_KEY=${{ secrets.HY2_API_POST_KEY }}
|
||||
pip install requests
|
||||
python hyperbole.py publish
|
||||
|
@ -8,7 +8,6 @@ import sys
|
||||
import subprocess
|
||||
import datetime
|
||||
import shutil
|
||||
import requests
|
||||
|
||||
# Hyperbole is the official build script for Hysteria.
|
||||
# Available environment variables for controlling the build:
|
||||
@ -348,6 +347,8 @@ def cmd_test(module=None):
|
||||
|
||||
|
||||
def cmd_publish(urgent=False):
|
||||
import requests
|
||||
|
||||
if not check_build_env():
|
||||
return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user