diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index ffe7922df97..ebc8aefbac2 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -14,6 +14,7 @@ on: required: true description: Build Type default: debug + type: choice options: - pro - debug @@ -51,7 +52,7 @@ jobs: token: '${{ secrets.NPM_AUTH_TOKEN }}' build-debug: - name: build debug + name: build & package zip runs-on: [self-hosted, X64, Linux, webextension, builder] needs: setup env: @@ -78,8 +79,9 @@ jobs: - name: build run: | - # for branch tmp/202*, force notify_lark=true echo "GIT_REF is $GIT_REF" + echo "build_type is $build_type" + # for branch tmp/202*, force notify_lark=true if [[ $GIT_REF == refs/heads/tmp/202* ]]; then export notify_lark=true; fi diff --git a/scripts/autobuild.sh b/scripts/autobuild.sh index 0c9c432733f..8cfc62b357f 100755 --- a/scripts/autobuild.sh +++ b/scripts/autobuild.sh @@ -13,7 +13,9 @@ if [ -z $build_type ]; then fi PKG_SLUG="RabbyDebug"; -[ $build_type == "pro" ] && PKG_SLUG="Rabby"; +if [ "$build_type" == "pro" ]; then + PKG_SLUG="Rabby"; +fi VERSION=$(node --eval="process.stdout.write(require('./package.json').version)"); RABBY_GIT_HASH=$(git rev-parse --short HEAD);