modify release.yml and release package name format
modify release.yml and release package name format
This commit is contained in:
parent
8ed1e4161f
commit
5d7ebca34d
|
@ -16,7 +16,7 @@ jobs:
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.14
|
go-version: 1.13
|
||||||
|
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -28,5 +28,5 @@ jobs:
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: dist/**.tar.gz
|
files: dist/**.tar.gz
|
||||||
env:
|
env:
|
||||||
RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@ -5,7 +5,7 @@ source x.sh
|
||||||
CURRENT_PATH=$(pwd)
|
CURRENT_PATH=$(pwd)
|
||||||
PROJECT_PATH=$(dirname "${CURRENT_PATH}")
|
PROJECT_PATH=$(dirname "${CURRENT_PATH}")
|
||||||
BUILD_PATH=${PROJECT_PATH}/build
|
BUILD_PATH=${PROJECT_PATH}/build
|
||||||
APP_VERSION=${1:-'v1.6.0'}
|
APP_VERSION=${1:-'1.6.0'}
|
||||||
|
|
||||||
print_blue "===> 1. Install packr"
|
print_blue "===> 1. Install packr"
|
||||||
if ! type packr >/dev/null 2>&1; then
|
if ! type packr >/dev/null 2>&1; then
|
||||||
|
@ -23,9 +23,9 @@ cd "${PROJECT_PATH}"
|
||||||
cp ./bin/bitxhub ./build/bitxhub
|
cp ./bin/bitxhub ./build/bitxhub
|
||||||
cp ./internal/plugins/build/*.so ./build/
|
cp ./internal/plugins/build/*.so ./build/
|
||||||
if [ "$(uname)" == "Darwin" ]; then
|
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/
|
mv ./*.tar.gz ../dist/
|
||||||
else
|
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/
|
mv ./*.tar.gz ../dist/
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue