Skip to content

Commit

Permalink
update git action config
Browse files Browse the repository at this point in the history
  • Loading branch information
AderanFeng committed Sep 18, 2023
1 parent 3cfbe6b commit 73c1db7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/flat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
push:
branches:
- main
- ui-change

jobs:
build:
Expand All @@ -14,7 +13,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Decrypt
run: ./.github/scripts/decrypt_secret.sh
Expand All @@ -30,9 +29,10 @@ jobs:
ALIYUN_LOG_PROD_AK: ${{ secrets.ALIYUN_LOG_PROD_AK }}
ALIYUN_LOG_PROD_SK: ${{ secrets.ALIYUN_LOG_PROD_SK }}

- name: JDK Setup
uses: actions/setup-java@v1
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- uses: actions/cache@v2
Expand All @@ -54,7 +54,7 @@ jobs:
path: '*/build/reports/'

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: flat-artifact
path: app/build/outputs/apk/release/*.apk
path: app/build/outputs/apk/**/release/*.apk
2 changes: 0 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ android {
def apkName = output.outputFile.name
if (apkName.contains("debug")) {
output.outputFileName = "Flat-v${defaultConfig.versionName}-$formattedDate-debug.apk"
} else {
output.outputFileName = "Flat-v${defaultConfig.versionName}.apk"
}
}
}
Expand Down

0 comments on commit 73c1db7

Please sign in to comment.