Open-source alternative Instagram client on Android. More maintainers needed!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.3 KiB

  1. name: Github release build
  2. on: workflow_dispatch
  3. # push:
  4. # branches: [ master ]
  5. # pull_request:
  6. # branches: [ master ]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Checkout
  12. uses: actions/checkout@v2
  13. - name: set up JDK 1.8
  14. uses: actions/setup-java@v1
  15. with:
  16. java-version: 1.8
  17. - name: Grant execute permission for gradlew
  18. run: chmod +x gradlew
  19. - name: Build Github unsigned release apk
  20. run: ./gradlew assembleGithubRelease --stacktrace
  21. - name: Sign APK
  22. uses: r0adkll/sign-android-release@v1
  23. # ID used to access action output
  24. id: sign_app
  25. with:
  26. releaseDirectory: app/build/outputs/apk/github/release
  27. signingKeyBase64: ${{ secrets.SIGNING_KEY }}
  28. alias: ${{ secrets.ALIAS }}
  29. keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
  30. keyPassword: ${{ secrets.KEY_PASSWORD }}
  31. - name: Get current date and time
  32. id: date
  33. run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M%S')"
  34. # Create artifact
  35. - name: Create apk artifact
  36. uses: actions/upload-artifact@v2
  37. with:
  38. name: barinsta-hotfix-${{ steps.date.outputs.date }}
  39. path: ${{steps.sign_app.outputs.signedReleaseFile}}