Skip to content

Rename package to com.volla.vollaboard #11

Rename package to com.volla.vollaboard

Rename package to com.volla.vollaboard #11

Workflow file for this run

name: Android CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build && mkdir -p releases && find app/build/ -type f -name \*\.apk -exec mv {} releases/com.volla.vollaboard_$GITHUB_RUN_ID.apk \;
- uses: Tlaster/android-sign@v1
name: Sign app APK
with:
releaseDirectory: ./releases
signingKeyBase64: ${{ secrets.ANDROID_KEYSTORE_FILE_CONTENTS }}
output: ./releases/signed
alias: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASS }}
keyPassword: ${{ secrets.ANDROID_KEYSTORE_PASS }}
- name: Upload Apk to Nightly Repository
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: wlixcc/[email protected]
with:
username: 'drone'
server: 'volla.tech'
port: 22
ssh_private_key: '${{ secrets.FDROID_DEPLOY_KEY }}'
local_path: './releases/signed/*.apk'
remote_path: '/fdroid-nightly.volla.tech/builds/volla/vollaboard/'
args: '-o CheckHostIP=no -o StrictHostKeyChecking=no'
- name: Upload Apk to Release Repository
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: wlixcc/[email protected]
with:
username: 'drone'
server: 'volla.tech'
port: 22
ssh_private_key: '${{ secrets.FDROID_DEPLOY_KEY }}'
local_path: './releases/signed/*.apk'
remote_path: '/fdroid.volla.tech/builds/volla/vollaboard/'
args: '-o CheckHostIP=no -o StrictHostKeyChecking=no'