From 0aa860ea043c1ca5c31c374c9d4658c998b46b23 Mon Sep 17 00:00:00 2001 From: ghcdn Date: Wed, 15 Nov 2023 21:11:02 +0800 Subject: [PATCH] Update static.yml --- .github/workflows/static.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 0edf7c4..780d529 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -14,15 +14,18 @@ jobs: - name: Download ProxyTools run: | - VERSION=$(wget -O- https://api.github.com/repos/shadowsocks/shadowsocks-rust/releases/latest | grep 'tag_name' | cut -d\" -f4) - SS_URL="https://github.com/shadowsocks/shadowsocks-rust/releases/download/${VERSION}/shadowsocks-${VERSION}.x86_64-unknown-linux-musl.tar.xz" - wget ${SS_URL} && tar xf shadowsocks-*.tar.xz -C . + url=$(wget -O- "https://api.github.com/repos/shadowsocks/shadowsocks-rust/releases/latest" | grep -Eo '\"https.*?x86_64-unknown-linux-musl.tar.xz\"' | tr -d \") + wget $url && tar xf shadowsocks-*.tar.xz + url=$(wget -O- "https://api.github.com/repos/v2fly/v2ray-core/releases/latest" | grep -Eo '\"https.*?v2ray-linux-64.zip\"' | tr -d \") + wget $url && unzip v2ray-linux-64.zip && mv v2ray vserver url=$(wget -O- "https://api.github.com/repos/maskedeken/gost-plugin/releases/latest" | grep -Eo 'https.*?gost-plugin-linux-amd64.*?gz') wget "$url" && tar xf gost-plugin-linux-amd64*.tar.gz + url=$(wget -O- "https://api.github.com/repos/e1732a364fed/v2ray_simple/releases/latest" | grep -Eo 'https.*?verysimple_linux_amd64.tar.xz') + wget "$url" && tar xf verysimple_linux_amd64.tar.xz wget 'https://dl.lamp.sh/files/v''2r''a''y-plugin_linux_amd64' -O v2-plugin - name: Upload ProxyTools env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} run: | - gh release create latest ./linux-amd64/gost-plugin v2-plugin ssserver + gh release create latest ./linux-amd64/gost-plugin v2-plugin ssserver vserver verysimple