Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apply changes to attach_debug_apks_to_release as requested #3253

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 16 additions & 2 deletions .github/workflows/attach_debug_apks_to_release.yml
Expand Up @@ -39,7 +39,10 @@ jobs:
echo "Building APKs for 'APK_VERSION_TAG' release"
export TERMUX_APK_VERSION_TAG="$APK_VERSION_TAG" # Used by app/build.gradle
export TERMUX_PACKAGE_VARIANT="${{ env.PACKAGE_VARIANT }}" # Used by app/build.gradle
./gradlew assembleDebug
if ! ./gradlew assembleDebug; then
echo "Build failed for '$APK_VERSION_TAG' release."
exit 1
fi

echo "Validating APKs"
for abi in universal arm64-v8a armeabi-v7a x86_64 x86; do
Expand All @@ -63,11 +66,22 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@v3
- name: Upload APKs to release
uses: termux/upload-release-action@v4.1.0
uses: termux/upload-release-action@c6bc73fa777109ac75c51ec3b6ae7841f45cb67a
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "**/*.apk"
file_glob: true
release_name:
tag: ${{ github.event.release.tag_name }}
checksums: sha256,sha512,md5
checksums_file_name: release.%algo%
delete_release:
if: failure()
runs-on: ubuntu-latest
needs: [build, upload]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Delete release (if other job(s) failed)
run: |
gh release delete ${{ github.events.release.tag_name }}