Merge pull request #112 from weblate/weblate-onionshare-onionshare-an… #102
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |