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 03faa15
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 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,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
Expand Down
4 changes: 3 additions & 1 deletion scripts/autobuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 03faa15

Please sign in to comment.