Skip to content

Commit

Permalink
[fix] Fix workflows/pre_release.yml [skip_post]
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyD666 committed Apr 6, 2024
1 parent 2979eca commit a575afb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pre_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: Pre-Release Apk (x86)
path: app/build/outputs/apk/GitHub/release/*x86*.apk
path: |
app/build/outputs/apk/GitHub/release/*x86*.apk
!app/build/outputs/apk/GitHub/release/*x86_64*.apk
# Upload apk (universal)
- name: Upload Pre-Release Apk (universal)
uses: actions/upload-artifact@v3
Expand All @@ -78,15 +80,15 @@ jobs:
with:
name: Pre-Release Mapping
path: app/build/outputs/mapping/GitHubRelease/mapping.txt
# 获取 apk 路径
# Get apk path
- name: Get Pre-Release Apk File Path
run: |
echo "PRE_RELEASE_APK_ARM64_V8=$(find app/build/outputs/apk/GitHub/release -name '*arm64-v8a*.apk' -type f | head -1)" >> $GITHUB_ENV
echo "PRE_RELEASE_APK_ARM_V7=$(find app/build/outputs/apk/GitHub/release -name '*armeabi-v7a*.apk' -type f | head -1)" >> $GITHUB_ENV
echo "PRE_RELEASE_APK_X86_64=$(find app/build/outputs/apk/GitHub/release -name '*x86_64*.apk' -type f | head -1)" >> $GITHUB_ENV
echo "PRE_RELEASE_APK_X86=$(find app/build/outputs/apk/GitHub/release -name '*x86*.apk' -type f | head -1)" >> $GITHUB_ENV
echo "PRE_RELEASE_APK_UNIVERSAL=$(find app/build/outputs/apk/GitHub/release -name '*universal*.apk' -type f | head -1)" >> $GITHUB_ENV
# 发送至 Telegram 频道
# Send to Telegram
- name: Post to Telegram Channel
if: github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, '[skip_post]') == false
env:
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ android {
.forEach { output ->
val abi = output.getFilter(FilterConfiguration.FilterType.ABI.name) ?: "universal"
output.outputFileName =
"AniVu_${versionName}_${buildType.name}_${abi}_${flavorName}.apk"
"AniVu_${versionName}_${abi}_${buildType.name}_${flavorName}.apk"
}
}

Expand Down

0 comments on commit a575afb

Please sign in to comment.