Skip to content

Commit

Permalink
Update static.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cylind committed Nov 15, 2023
1 parent 7019d3f commit 0aa860e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0aa860e

Please sign in to comment.