preping for github actions
This commit is contained in:
70
.github/workflows/android-release.yml
vendored
Normal file
70
.github/workflows/android-release.yml
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
name: Android Release Build
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build and Create Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
cache: gradle
|
||||
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew assembleRelease
|
||||
|
||||
- name: Sign APK
|
||||
uses: r0adkll/sign-android-release@v1
|
||||
id: sign_app
|
||||
with:
|
||||
releaseDirectory: app/build/outputs/apk/release
|
||||
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
|
||||
alias: ${{ secrets.KEY_ALIAS }}
|
||||
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
|
||||
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
||||
env:
|
||||
BUILD_TOOLS_VERSION: "33.0.0"
|
||||
|
||||
- name: Get the version
|
||||
id: get_version
|
||||
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Rename APK with version
|
||||
run: |
|
||||
cp ${{ steps.sign_app.outputs.signedReleaseFile }} SimpleLogUpload-${{ steps.get_version.outputs.VERSION }}.apk
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
name: SimpleLogUpload ${{ steps.get_version.outputs.VERSION }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
files: |
|
||||
SimpleLogUpload-${{ steps.get_version.outputs.VERSION }}.apk
|
||||
app/build/outputs/apk/release/app-release-unsigned.apk
|
||||
body: |
|
||||
# SimpleLogUpload ${{ steps.get_version.outputs.VERSION }}
|
||||
|
||||
Android client written in Java to easily upload files, including Samsung dumpstate files.
|
||||
|
||||
## Installation
|
||||
Download and install the APK file on your Android device.
|
||||
|
||||
## Requirements
|
||||
- Android 14+
|
||||
- SimpleFileUpload-Server for handling the uploaded files
|
||||
Reference in New Issue
Block a user