Skip to content

Commit af96a04

Browse files
committed
ci(workflows): 更新构建工作流中的密钥库路径引用
- 使用 github.workspace 变量替换硬编码路径 - 确保密钥库文件路径在不同环境中的一致性 - 提高工作流配置的可维护性和可靠性 Signed-off-by: Jesse205 <2055675594@qq.com>
1 parent e80ff32 commit af96a04

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Decode Keystore
3131
run: |
3232
mkdir -p app/keystores
33-
echo "${{ secrets.KEYSTORE_FILE }}" | base64 -d > app/keystores/keystore.jks
33+
echo "${{ secrets.KEYSTORE_FILE }}" | base64 -d > ${{ github.workspace }}/app/keystores/keystore.jks
3434
chmod 600 app/keystores/keystore.jks
3535
3636
- name: Grant execute permission for gradlew
@@ -39,7 +39,7 @@ jobs:
3939
- name: Build APK
4040
run: ./gradlew assembleRelease --stacktrace
4141
env:
42-
KEYSTORE_FILE: app/keystores/keystore.jks
42+
KEYSTORE_FILE: ${{ github.workspace }}/app/keystores/keystore.jks
4343
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
4444
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
4545
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}

0 commit comments

Comments
 (0)