jld3103
2 years ago
committed by
GitHub
1 changed files with 57 additions and 0 deletions
@ -0,0 +1,57 @@ |
|||||||
|
name: Publish F-Droid nightly build |
||||||
|
|
||||||
|
on: |
||||||
|
push: |
||||||
|
branches: |
||||||
|
- main |
||||||
|
|
||||||
|
jobs: |
||||||
|
nightly: |
||||||
|
name: Publish F-Droid nightly build |
||||||
|
runs-on: ubuntu-latest |
||||||
|
environment: nightly |
||||||
|
steps: |
||||||
|
- name: Checkout |
||||||
|
uses: actions/checkout@v2 |
||||||
|
|
||||||
|
- uses: subosito/flutter-action@v2 |
||||||
|
with: |
||||||
|
flutter-version: '3.0.5' |
||||||
|
channel: 'stable' |
||||||
|
cache: true |
||||||
|
- name: Set up JDK 11 |
||||||
|
uses: actions/setup-java@v2 |
||||||
|
with: |
||||||
|
distribution: 'adopt' |
||||||
|
java-version: 11 |
||||||
|
|
||||||
|
- name: Pub dependency cache |
||||||
|
uses: actions/cache@v3 |
||||||
|
with: |
||||||
|
path: $PUB_CACHE |
||||||
|
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }} |
||||||
|
restore-keys: | |
||||||
|
${{ runner.os }}-pub- |
||||||
|
- name: Gradle dependency cache |
||||||
|
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: Build |
||||||
|
run: | |
||||||
|
cd packages/neon |
||||||
|
flutter build apk |
||||||
|
cp build/app/outputs/apk/release/app-release.apk app-debug.apk |
||||||
|
|
||||||
|
- name: Upload |
||||||
|
run: | |
||||||
|
sudo add-apt-repository ppa:fdroid/fdroidserver |
||||||
|
sudo apt-get update |
||||||
|
sudo apt-get install apksigner fdroidserver tree --no-install-recommends |
||||||
|
export DEBUG_KEYSTORE=${{ secrets.DEBUG_KEYSTORE }} |
||||||
|
fdroid nightly -v --archive-older 10 --file app-debug.apk |
Loading…
Reference in new issue