-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (67 loc) · 2.78 KB
/
Copy pathandroid-release.yml
File metadata and controls
80 lines (67 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
##############################################################################
# NOTE: This workflow is superseded by the unified release.yml workflow
# which builds Desktop, Android, iOS, and macOS from a single tag push.
# This file is retained for backward compatibility but should not be used
# for new releases. See .github/workflows/release.yml instead.
##############################################################################
name: Android Release
on:
# Disabled -- unified release.yml now handles tag-triggered Android builds.
# Uncomment the lines below to re-enable standalone Android releases.
# push:
# tags:
# - 'v*'
workflow_dispatch:
inputs:
tag:
description: 'Version tag (e.g. v1.2.3)'
required: true
jobs:
release-android:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build Android Debug APK (Signed)
run: gradle :jnexus-android:assembleDebug
- name: Get version from tag
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Rename APK
run: |
mv jnexus-android/build/outputs/apk/debug/jnexus-android-debug.apk \
jnexus-android-${{ steps.version.outputs.VERSION }}.apk
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: jnexus-android-${{ steps.version.outputs.VERSION }}.apk
name: JNexus v${{ steps.version.outputs.VERSION }}
body: |
## JNexus Android Mobile App v${{ steps.version.outputs.VERSION }}
### Installation
1. Download the APK below
2. Enable "Install from unknown sources" in Android settings
3. Install the APK on your Android device (Android 8.0+)
4. Open app and configure credentials in Settings
### Features
- List and manage Nexus repository components
- Advanced search with filters (size, date, extension, regex)
- Repository statistics and analytics
- Secure credential storage (AES256 encryption)
- Material Design 3 UI
### Requirements
- Android 8.0+ (API 26 or higher)
- Internet connection
- Valid Nexus repository credentials
**Note:** This APK is signed with the debug keystore for easy installation. For production deployment, sign with your own release keystore.
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}