From 24f564b401a72df22977b138387fef46453d79b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E3=81=AE=E3=81=8B=E3=81=88=E3=81=A7?= Date: Sat, 6 Mar 2021 14:34:40 +0800 Subject: [PATCH] Chore: Adjust release.yml (#337) Co-authored-by: Jim Han <50871214+JimhHan@users.noreply.github.com> Co-authored-by: RPRX <63339210+rprx@users.noreply.github.com> --- .github/workflows/release.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 317c8a1c..94f6e957 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -99,8 +99,8 @@ jobs: goarm: 7 # END OPENBSD ARM fail-fast: false - #配置编译环境 - runs-on: ubuntu-20.04 + + runs-on: ubuntu-latest env: GOOS: ${{ matrix.goos }} GOARCH: ${{ matrix.goarch }} @@ -173,16 +173,8 @@ jobs: shell: bash run: | pushd build_assets || exit 1 - touch -mt 202101010000 * + touch -mt $(date +%Y01010000) * zip -9vr ../Xray-$ASSET_NAME.zip . - for CORE in $(ls xray*) - do - COREDGST=$CORE.dgst - for METHOD in {"md5","sha1","sha256","sha512"} - do - openssl dgst -$METHOD $CORE | sed 's/([^)]*)//g' >>$COREDGST - done - done popd || exit 1 FILE=./Xray-$ASSET_NAME.zip DGST=$FILE.dgst