mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-06-08 13:29:56 +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
|
- name: Run build script
|
||||||
run: |
|
run: |
|
||||||
pip install requests
|
|
||||||
export HY_APP_PLATFORMS=$(sed 's/\r$//' platforms.txt | awk '!/^#/ && !/^$/' | paste -sd ",")
|
export HY_APP_PLATFORMS=$(sed 's/\r$//' platforms.txt | awk '!/^#/ && !/^$/' | paste -sd ",")
|
||||||
python hyperbole.py build -r
|
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
|
- name: Run build script
|
||||||
run: |
|
run: |
|
||||||
pip install requests
|
|
||||||
export HY_APP_PLATFORMS=$(sed 's/\r$//' platforms.txt | awk '!/^#/ && !/^$/' | paste -sd ",")
|
export HY_APP_PLATFORMS=$(sed 's/\r$//' platforms.txt | awk '!/^#/ && !/^$/' | paste -sd ",")
|
||||||
python hyperbole.py build -r
|
python hyperbole.py build -r
|
||||||
|
|
||||||
@ -46,4 +45,5 @@ jobs:
|
|||||||
- name: Publish to API
|
- name: Publish to API
|
||||||
run: |
|
run: |
|
||||||
export HY_API_POST_KEY=${{ secrets.HY2_API_POST_KEY }}
|
export HY_API_POST_KEY=${{ secrets.HY2_API_POST_KEY }}
|
||||||
|
pip install requests
|
||||||
python hyperbole.py publish
|
python hyperbole.py publish
|
||||||
|
@ -8,7 +8,6 @@ import sys
|
|||||||
import subprocess
|
import subprocess
|
||||||
import datetime
|
import datetime
|
||||||
import shutil
|
import shutil
|
||||||
import requests
|
|
||||||
|
|
||||||
# Hyperbole is the official build script for Hysteria.
|
# Hyperbole is the official build script for Hysteria.
|
||||||
# Available environment variables for controlling the build:
|
# Available environment variables for controlling the build:
|
||||||
@ -348,6 +347,8 @@ def cmd_test(module=None):
|
|||||||
|
|
||||||
|
|
||||||
def cmd_publish(urgent=False):
|
def cmd_publish(urgent=False):
|
||||||
|
import requests
|
||||||
|
|
||||||
if not check_build_env():
|
if not check_build_env():
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user