From f035837aed3d3decc3908237f887c447684825e4 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Wed, 10 Jan 2024 22:05:19 +0330 Subject: [PATCH] Centralized Xray URLs --- .github/workflows/release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87be5c29..857913d0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,16 +51,17 @@ jobs: cd x-ui/bin # Download dependencies + Xray_URL="https://github.com/XTLS/Xray-core/releases/download/v1.8.7/" if [ "${{ matrix.platform }}" == "amd64" ]; then - wget https://github.com/XTLS/Xray-core/releases/download/v1.8.7/Xray-linux-64.zip + wget ${Xray_URL}Xray-linux-64.zip unzip Xray-linux-64.zip rm -f Xray-linux-64.zip elif [ "${{ matrix.platform }}" == "arm64" ]; then - wget https://github.com/XTLS/Xray-core/releases/download/v1.8.7/Xray-linux-arm64-v8a.zip + wget ${Xray_URL}Xray-linux-arm64-v8a.zip unzip Xray-linux-arm64-v8a.zip rm -f Xray-linux-arm64-v8a.zip else - wget https://github.com/XTLS/Xray-core/releases/download/v1.8.7/Xray-linux-arm32-v7a.zip + wget ${Xray_URL}Xray-linux-arm32-v7a.zip unzip Xray-linux-arm32-v7a.zip rm -f Xray-linux-arm32-v7a.zip fi