更新 .gitea/workflows/app_update.yml
This commit is contained in:
@@ -40,10 +40,13 @@ jobs:
|
|||||||
|
|
||||||
- name: 下载并解压Shadowsocks-Rust
|
- name: 下载并解压Shadowsocks-Rust
|
||||||
run: |
|
run: |
|
||||||
curl -L "https://github.com/shadowsocks/shadowsocks-rust/releases/latest/download/shadowsocks-v1.23.5.x86_64-unknown-linux-musl.tar.xz" \
|
SS_RUST_VERSION=$(curl -s "https://api.github.com/repos/shadowsocks/shadowsocks-rust/releases/latest" \
|
||||||
-o "shadowsocks.tar.xz" \
|
| grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
|
||||||
--fail --silent --show-error && \
|
DOWNLOAD_URL="https://github.com/shadowsocks/shadowsocks-rust/releases/latest/download/shadowsocks-${SS_RUST_VERSION}.x86_64-unknown-linux-musl.tar.xz"
|
||||||
tar -xvf shadowsocks.tar.xz -C tmp/ && \
|
|
||||||
|
echo "下载版本: ${SS_RUST_VERSION}"
|
||||||
|
curl -L "${DOWNLOAD_URL}" -o "shadowsocks.tar.xz" --fail --silent --show-error
|
||||||
|
tar -xvf shadowsocks.tar.xz -C tmp/
|
||||||
mv tmp/ssserver app/
|
mv tmp/ssserver app/
|
||||||
|
|
||||||
- name: 提交更改
|
- name: 提交更改
|
||||||
|
|||||||
Reference in New Issue
Block a user