From 5d7ebca34d94313da3e26b86e631569c69acbbdc Mon Sep 17 00:00:00 2001 From: xiaochenl Date: Fri, 9 Apr 2021 17:47:07 +0800 Subject: [PATCH] modify release.yml and release package name format modify release.yml and release package name format --- .github/workflows/release.yml | 6 +++--- scripts/release_binary.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18d3640..155da6e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.14 + go-version: 1.13 - name: Check out code uses: actions/checkout@v2 @@ -28,5 +28,5 @@ jobs: uses: softprops/action-gh-release@v1 with: files: dist/**.tar.gz - env: - RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/scripts/release_binary.sh b/scripts/release_binary.sh index 005bff7..465483a 100644 --- a/scripts/release_binary.sh +++ b/scripts/release_binary.sh @@ -5,7 +5,7 @@ source x.sh CURRENT_PATH=$(pwd) PROJECT_PATH=$(dirname "${CURRENT_PATH}") BUILD_PATH=${PROJECT_PATH}/build -APP_VERSION=${1:-'v1.6.0'} +APP_VERSION=${1:-'1.6.0'} print_blue "===> 1. Install packr" if ! type packr >/dev/null 2>&1; then @@ -23,9 +23,9 @@ cd "${PROJECT_PATH}" cp ./bin/bitxhub ./build/bitxhub cp ./internal/plugins/build/*.so ./build/ if [ "$(uname)" == "Darwin" ]; then - cd "${BUILD_PATH}" && tar zcvf bitxhub_macos_x86_64_v"${APP_VERSION}".tar.gz ./bitxhub ./raft.so ./solo.so ./libwasmer.dylib + cd "${BUILD_PATH}" && tar zcvf bitxhub_v"${APP_VERSION}"_Darwin_x86_64.tar.gz ./bitxhub ./raft.so ./solo.so ./libwasmer.dylib mv ./*.tar.gz ../dist/ else - cd "${BUILD_PATH}" && tar zcvf bitxhub_linux-amd64_v"${APP_VERSION}".tar.gz ./bitxhub ./*.so + cd "${BUILD_PATH}" && tar zcvf bitxhub_v"${APP_VERSION}"_Linux_x86_64.tar.gz ./bitxhub ./*.so mv ./*.tar.gz ../dist/ fi