-
Notifications
You must be signed in to change notification settings - Fork 17
38 lines (36 loc) · 1.09 KB
/
nightly.yml
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
name: Publish nightly build
on:
push:
branches:
- main
jobs:
nightly:
name: Publish nightly build
runs-on: ubuntu-latest
environment: nightly
steps:
- name: Checkout
uses: actions/checkout@v2
- 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: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 11
- name: Build
run: ./gradlew assembleNightlyDebug
- name: F-Droid nightly builds
uses: wardvl/[email protected]
with:
debug_keystore: ${{ secrets.DEBUG_KEYSTORE }}
fdroid_nightly_args: --archive-older 10
- name: F-Droid repo permission clean-up # https://github.com/actions/cache/issues/753
run: sudo chown -R runner:docker fdroid