Merge pull request #75 from docspell/renovate/com.github.ben-manes.ve… #55
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: ReleaseNightly | |
on: | |
push: | |
branches: | |
- "master" | |
jobs: | |
release-nightly: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: true | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 100 | |
- name: Fetch tags | |
run: git fetch --depth=100 origin +refs/tags/*:refs/tags/* | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: adopt | |
java-version: 11 | |
- name: Set current version | |
run: echo "PROJECT_VERSION=$(cat app/build.gradle | grep versionName | cut -d\" -f2 | xargs)" >> $GITHUB_ENV | |
- name: gradle build ${{ github.ref }} | |
uses: burrunan/gradle-cache-action@v1 | |
with: | |
gradle-version: wrapper | |
arguments: --no-parallel --no-daemon --build-cache build assembleRelease | |
- uses: r0adkll/sign-android-release@v1 | |
name: Sign app APK | |
id: sign_app | |
with: | |
releaseDirectory: app/build/outputs/apk/release | |
signingKeyBase64: ${{ secrets.SIGNING_KEY }} | |
alias: ${{ secrets.ALIAS }} | |
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} | |
keyPassword: ${{ secrets.KEY_PASSWORD }} | |
- name: Rename apk file | |
run: mv ${{steps.sign_app.outputs.signedReleaseFile}} docspell-share-${{ env.PROJECT_VERSION }}.apk | |
# - uses: "marvinpinto/action-automatic-releases@latest" | |
# with: | |
# repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
# automatic_release_tag: "nightly" | |
# prerelease: true | |
# title: "Docspell Share Nightly" | |
# files: | | |
# docspell-share-${{ env.PROJECT_VERSION }}.apk |