Skip to content

Commit

Permalink
build: ci fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardo2016x committed Dec 7, 2024
1 parent 463bbaa commit 300c19b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
required: true
description: Build Type
default: debug
type: choice
options:
- pro
- debug
Expand Down Expand Up @@ -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:
Expand All @@ -78,12 +79,13 @@ 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
sh ./scripts/autobuild.sh;
bash ./scripts/autobuild.sh;
env:
RABBY_BUILD_BUCKET: ${{ secrets.RABBY_BUILD_BUCKET }}
RABBY_LARK_CHAT_URL: ${{ secrets.RABBY_LARK_CHAT_URL }}
Expand Down
2 changes: 1 addition & 1 deletion scripts/autobuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [ -z $build_type ]; then
fi

PKG_SLUG="RabbyDebug";
[ $build_type == "pro" ] && PKG_SLUG="Rabby";
[[ "$build_type" == "pro" ]] && PKG_SLUG="Rabby";

VERSION=$(node --eval="process.stdout.write(require('./package.json').version)");
RABBY_GIT_HASH=$(git rev-parse --short HEAD);
Expand Down

0 comments on commit 300c19b

Please sign in to comment.