mirror of
https://github.com/meditohq/medito-app.git
synced 2024-09-11 12:15:46 +03:00
chore(ci): upload apk to github release
This commit is contained in:
parent
a1cda4bbd4
commit
22aa4881b2
36
.github/workflows/deploy_to_playstore.yml
vendored
36
.github/workflows/deploy_to_playstore.yml
vendored
@ -7,6 +7,9 @@ on:
|
||||
description: 'Fastlane lane to use (beta OR promote_to_production OR production)'
|
||||
required: true
|
||||
default: 'beta'
|
||||
version:
|
||||
description: 'Version for creating GH release. It does not change the version in the app itself.'
|
||||
required: true
|
||||
push:
|
||||
# Sequence of patterns matched against refs/tags
|
||||
tags:
|
||||
@ -68,5 +71,34 @@ jobs:
|
||||
FCI_KEY_PASSWORD: ${{ secrets.FCI_KEY_PASSWORD }}
|
||||
FCI_KEYSTORE_PASSWORD: ${{ secrets.FCI_KEYSTORE_PASSWORD }}
|
||||
working-directory: android
|
||||
|
||||
# TODO: Build APK, create GH release and upload APK
|
||||
# The aab bundle cannot install easily on device. Build an APK to publish on GH
|
||||
- name: Build APK
|
||||
run: flutter build apk -v
|
||||
env:
|
||||
FCI_KEYSTORE_PATH: 'meditokey.jks' # The file is created in the previous step
|
||||
FCI_KEY_ALIAS: ${{ secrets.FCI_KEY_ALIAS }}
|
||||
FCI_KEY_PASSWORD: ${{ secrets.FCI_KEY_PASSWORD }}
|
||||
FCI_KEYSTORE_PASSWORD: ${{ secrets.FCI_KEYSTORE_PASSWORD }}
|
||||
- name: Create release version
|
||||
id: release_version
|
||||
run: echo "::set-output name=version::$(echo ${{ github.event.inputs.version || github.ref }} | sed 's#refs/tags/##')"
|
||||
- name: Upload app APK to github action artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: medito-${{ steps.release_version.outputs.version }}.apk
|
||||
path: build/app/outputs/flutter-apk/app-release.apk
|
||||
- name: Rename the output APK
|
||||
run: mv app-release.apk medito-${{ steps.release_version.outputs.version }}.apk
|
||||
working-directory: build/app/outputs/flutter-apk
|
||||
- name: Create GH Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
body: |
|
||||
# Medito ${{ steps.release_version.outputs.version }}
|
||||
## What's New?
|
||||
NOTE: If you install Medito app using APK file, please make sure to verify that the APK file is signed by Medito Foundation. See [VERIFY_APK](VERIFY_APK.md) for more information.
|
||||
draft: true
|
||||
files: build/app/outputs/flutter-apk/medito-${{ steps.release_version.outputs.version }}.apk
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
@ -11,6 +11,9 @@ Medito App is a flutter project available on Android and iOS maintained by the M
|
||||
## Download the app
|
||||
- Play Store: https://play.google.com/store/apps/details?id=meditofoundation.medito
|
||||
- App Store: https://apps.apple.com/us/app/medito/id1500780518
|
||||
- APK: <a href="https://github.com/meditohq/medito-app/releases/latest"><img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/meditohq/medito-app?color=success&label=APK"></a>
|
||||
|
||||
NOTE: If you install Medito app using APK file, please make sure to verify that the APK file is signed by Medito Foundation. See [VERIFY_APK](VERIFY_APK.md) for more information.
|
||||
|
||||
## How to use this code
|
||||
|
||||
|
22
VERIFY_APK.md
Normal file
22
VERIFY_APK.md
Normal file
@ -0,0 +1,22 @@
|
||||
# How to verify Medito APK before installing to your devices
|
||||
|
||||
## Using keytool
|
||||
|
||||
```
|
||||
keytool -printcert -jarfile medito.apk
|
||||
```
|
||||
The output certificate fingerprints should match:
|
||||
```
|
||||
// TODO: add Medito certificate fingerprints
|
||||
```
|
||||
|
||||
## Using apksigner
|
||||
|
||||
```
|
||||
apksigner verify --print-certs medito.apk
|
||||
```
|
||||
|
||||
The output certificate fingerprints should match:
|
||||
```
|
||||
// TODO: add Medito certificate fingerprints
|
||||
```
|
Loading…
Reference in New Issue
Block a user