From 02a6ec9b0e8e497a471be1d96a16ed56e64dfe2f Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Sat, 12 Oct 2024 17:51:13 +0800 Subject: [PATCH] Add download asset files step in github actions Signed-off-by: Loren Eteval --- .github/workflows/deploy-pypi.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-pypi.yml b/.github/workflows/deploy-pypi.yml index bdbe930..78a7945 100644 --- a/.github/workflows/deploy-pypi.yml +++ b/.github/workflows/deploy-pypi.yml @@ -35,11 +35,16 @@ jobs: pip install setuptools wheel - - name: Install requirements-nocore.txt + - name: Install requirements.txt run: >- python3 -m pip install - -r requirements-nocore.txt + -r requirements.txt + + - name: Download latest asset files + run: | + python3 -m pip install requests + python3 Deploy.py --download - name: Build a binary wheel and a source tarball run: python3 setup.py sdist bdist_wheel @@ -133,11 +138,11 @@ jobs: exit 1 fi - - name: Install requirements-nocore.txt + - name: Install requirements.txt run: >- python3 -m pip install - -r requirements-nocore.txt + -r requirements.txt - name: Install numpy<2 run: >- @@ -173,6 +178,11 @@ jobs: go version python3 -m pip install "Xray-core >= 1.8.8" "hysteria2 >= 2.0.4" "tun2socks > 2.5.2" + - name: Download latest asset files + run: | + python3 -m pip install requests + python3 Deploy.py --download + - name: Run deploy script run: python3 Deploy.py