ci: Sign fail in build action #29
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: Build APP | |
on: | |
push: | |
branches: [ "master", "old-android" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- uses: sparkfabrik/[email protected] | |
with: | |
project-path: . | |
output-path: app-debug.apk | |
fastlane-env: "debug" | |
ruby-version: "3.3.0" | |
- uses: actions/upload-artifact@v3 | |
if: github.event_name == 'pull_request' | |
name: Upload app APK | |
with: | |
name: App bundle | |
path: app-debug.apk | |
# https://github.com/r0adkll/sign-android-release/issues/84#issuecomment-1889636075 | |
- name: Setup build tool version variable | |
shell: bash | |
run: | | |
BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1) | |
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV | |
echo Last build tool version is: $BUILD_TOOL_VERSION | |
- uses: r0adkll/sign-android-release@v1 | |
if: github.event_name != 'pull_request' | |
name: Sign app APK | |
id: sign_app | |
with: | |
releaseDirectory: . | |
signingKeyBase64: ${{ secrets.SIGNING_KEY }} | |
alias: ${{ secrets.ALIAS }} | |
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} | |
env: | |
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} | |
- uses: actions/upload-artifact@v4 | |
if: github.event_name != 'pull_request' | |
name: Upload signed app APK | |
with: | |
name: Signed app bundle | |
path: ${{steps.sign_app.outputs.signedReleaseFile}} |