Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
amberin authored Sep 25, 2023
1 parent 2b8f395 commit 6317309
Showing 1 changed file with 53 additions and 1 deletion.
54 changes: 53 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1 +1,53 @@
hej
name: Release

on:
# Trigger by pushing a version tag (which are protected)
push:
tags:
- v*

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build-and-release-apk:
runs-on: ubuntu-latest
steps:
- name: Checkout code for app release
uses: actions/checkout@v2

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Generate release APK
run: ./gradlew assemblePremiumRelease --stacktrace

- name: Sign APK with keystore
uses: r0adkll/sign-android-release@v1
id: sign_app
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.KEY_STORE }}
alias: ${{ secrets.KEY_STORE_ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASS }}
keyPassword: ${{ secrets.KEY_STORE_PASS }}
env:
BUILD_TOOLS_VERSION: "30.0.2"

- name: Upload release APK
uses: actions/upload-artifact@v2
with:
name: app-release.apk
path: ${{steps.sign_app.outputs.signedReleaseFile}}

- name: Echo APK name
run: echo Signed APK file: ${{steps.sign_app.outputs.signedReleaseFile}}

- name: Release signed APK
uses: MicahSphelele/action-publish-signed-apk@main
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
APP_FOLDER: app
FILE_DIR: ${{steps.sign_app.outputs.signedReleaseFile}}

0 comments on commit 6317309

Please sign in to comment.