mirror of
https://github.com/go-vikunja/app
synced 2024-09-16 12:51:46 +00:00
added encrypted key and secrets
This commit is contained in:
parent
aa3e0b2d30
commit
87781d2479
57
.github/workflows/flutter-release.yml
vendored
57
.github/workflows/flutter-release.yml
vendored
@ -1,6 +1,6 @@
|
||||
# Based on https://medium.com/flutter-community/automating-publishing-your-flutter-apps-to-google-play-using-github-actions-2f67ac582032
|
||||
|
||||
name: Flutter release
|
||||
name: Flutter Release
|
||||
|
||||
on:
|
||||
push:
|
||||
@ -16,6 +16,47 @@ jobs:
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: '17.x'
|
||||
- name: Set up Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 2.7
|
||||
|
||||
- name: Install Fastlane dependencies
|
||||
run: |
|
||||
pwd
|
||||
cd android
|
||||
bundle install
|
||||
cd ..
|
||||
|
||||
- name: Decrypting Keystore file
|
||||
run: |
|
||||
cd android/app
|
||||
keyFile=key.jks
|
||||
gpg -d --passphrase "${{ secrets.GPG_PASS }}" --batch $keyFile.asc > $keyFile
|
||||
- name: Decrypting key.properties file
|
||||
run: |
|
||||
cd ../
|
||||
keyPropFile=key.properties
|
||||
gpg -d --passphrase "${{ secrets.GPG_PASS }}" --batch $keyPropFile.asc > $keyPropFile
|
||||
|
||||
- name: Decrypting Fastlane Secret file
|
||||
run: |
|
||||
pwd
|
||||
cd android
|
||||
file=fastlane-secret.json
|
||||
gpg -d --passphrase "${{ secrets.GPG_PASS }}" --batch $file.asc > $file
|
||||
|
||||
- name: Testing Fastlane installation
|
||||
run: |
|
||||
pwd
|
||||
cd android
|
||||
bundle update fastlane
|
||||
bundle exec fastlane run validate_play_store_json_key
|
||||
|
||||
- name: Set up Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
@ -28,12 +69,18 @@ jobs:
|
||||
pub-cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path
|
||||
- run: flutter --version
|
||||
- run: flutter pub get
|
||||
- run: flutter build apk --debug --flavor core
|
||||
- run: flutter build appbundle --flavor core
|
||||
- run: flutter build appbundle
|
||||
- run: flutter build apk
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: app-release-bundle
|
||||
path: |
|
||||
build/app/outputs/bundle/coreRelease/app-core-release.aab
|
||||
build/app/outputs/flutter-apk/app-core-release.apk
|
||||
build/app/outputs/bundle/release/app-release.aab
|
||||
build/app/outputs/flutter-apk/app-release.apk
|
||||
|
||||
#- name: Deploy Google Play
|
||||
# run: |
|
||||
# pwd
|
||||
# cd android
|
||||
# bundle exec fastlane production_appbundle
|
60
android/app/key.jks.asc
Normal file
60
android/app/key.jks.asc
Normal file
@ -0,0 +1,60 @@
|
||||
-----BEGIN PGP MESSAGE-----
|
||||
|
||||
jA0ECQMIQRFQDoC57zb80uoB9Rb5+gdENAwqaI7NJqufqkOreQypAYPwSIn2rxk2
|
||||
7t+bSNjMUmf/ERefIglkvgN0y+T++Pu4i5vbPN67NhJOjaSKDyIWVsVIdcO+VleO
|
||||
e0QzrGN+CekHs2+nv612DjVnsE344L87zx5npaXOzicKvdkGK7RtAEJjoP+PLLXM
|
||||
l5JXXPL06YoqDEBTuvJLt0sGsDzkEPbC3qE0nI5wwtZk8ZXCohxLOM/5vI8uQkGw
|
||||
IXRZ/CFyBtsb6zErtFSivRAqhkaWC4R5mvGKSx2Xz4v0y2q1fbmfb2RHFLDgnotM
|
||||
eXw0DWZ2KiLvcq/AfPDKO7MyorAWc7XsuAGn2enz3aWLCEpSJjtPa0U8q9JtCl64
|
||||
ijlaOgt/Om5BrWhWEoojenr1MbMmdFZg9az7/VvIEjksijFd6WZTdte+S6Wcykzb
|
||||
nLWZ7z+A4OoKAtiOhPhF+AITSthBn32CygW4KsgnFbPejAKsj84IKNqMd85jE36Z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orvkdl18IfkADxIm5KoY99Ce0H9J+OPwew
|
||||
X6KtOwh0UBu2Cs+aag4xGk2IYtebi+JzEP6BEjoiMQezdUWNI7tSeC7CV+CAqdAF
|
||||
iPQUEXXl6y3zAR2RO0c=
|
||||
=yP/A
|
||||
-----END PGP MESSAGE-----
|
41
android/fastlane-secret.json.asc
Normal file
41
android/fastlane-secret.json.asc
Normal file
@ -0,0 +1,41 @@
|
||||
-----BEGIN PGP MESSAGE-----
|
||||
|
||||
jA0ECQMIXuolaGcvRNP80uoBsaqnyOF52cpRaHIwUQ15Ofrm5+MtwUD/iBtUreKw
|
||||
W4gEPWtnhtXUwJaJOT5XKj/3ye/rhypD+J4ZNbXyHBE36H73FLJelDdoTjhDkcs6
|
||||
IElqt2eybikHa3DbaQ9KzWyLRo8yQHdp1RDHoTQ1zzCxnsVpImltUEjy9Vp9oIy3
|
||||
ow6qnQdCM/SIl8oq7o9RstacCaqIuEDy0Cnl4znkjvcY2oNlaCaTYQhEs0tuRkFw
|
||||
VfiTz1RMR5uv1J/1ZW1dvS3mlvFf9akBX2jiiiFwFvPUbM25KhE7Ie2HGCAXP+f5
|
||||
xcN16fhnOFkJRZeoNVBEuWDYOZb+x1Nlg2uYig6J+U0BNocO4iNlsGEUBNad06MN
|
||||
liV/cwxsExWcINZwU6fe7AqKcTu1Fe8gMAUqHvl/3OIf/PZY7MQ1fhdRq/WwlK+Z
|
||||
/E7ncKaEkBadV06P73jAmoyIOXs7yc2cnW/cucdmNa0mkAjlKzYz70JF455t7RCX
|
||||
usGTp6nbMdOersQWhw1yjQmhGfgXDW7PRIZ1IPx3otmaQrSOn2xioGwydpWgWRke
|
||||
Iztu5zZ+MVTkpVUsnRuE2hElx6tkLmjOxJSuzZ/b4xXU0ardjhjB6lYinCPrYkyS
|
||||
t4fYOKlt86MdBOUUsGA0r2hZv/1s4GrnR8z8NkOdc1vpWiYWqG3dofHUOxgxJ4pA
|
||||
YY8xtymAiLY09Pi//sPQU9uzDeY95gxjKqv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Sq2EX7myZuL5mzdoAyIjXN
|
||||
P1IP/+ZsHkzWHrNhrjsfPQPpHIIAqRnU4nxPkKRDne4rWlnFDAB7YSCbkbmQh8JA
|
||||
jCz3HelZ6osPGDsEXTrOIWWoDb+Dm+jYGnIpmlV7DadNwqUdddv5uUMfPdduXZYh
|
||||
2y0lP1ktDahSep6UKw4Kr3nw1++15Yf1Y70MMcT4x8rnV6QAhPFdcEAe1u/FdIvu
|
||||
73YQU52MLxlqztZvW5gHvVfAWeUqvE50+7F8/snxNqqPEtQOQVjCTF5GDBmqsnNC
|
||||
AQZqBCg4lUEG+fC+qhkO1qgR2qyH8V7MIxg/Bcy43K0X9PcXBFlKFwrVt3gjB5gt
|
||||
E9zohS1j2Ztx1ixrabt0tayRuJoqNlQ60mPPDZPbkhUbTNV/0MizPgh1NtGrAX9W
|
||||
OfOQZt+x84dnNSSiFzlfOe9BcQRhJuKhKstZQHHzfWGLO57PuuAM2fPtuYMgWF/8
|
||||
siJ6i6eVMdTCt4jhe87nMluxYNZzZx7YuwP+ivaIBHOvxuxZmtIn9CdmSjzt1cye
|
||||
obAqChdXfcTMpPJTnOzCEDAYn/BY+uc57EHX7qkA3KVHI9gvY7+MjwTPDdJhkXpb
|
||||
SuZX90+vpiWa+7w=
|
||||
=xhx5
|
||||
-----END PGP MESSAGE-----
|
2
android/fastlane/Appfile
Normal file
2
android/fastlane/Appfile
Normal file
@ -0,0 +1,2 @@
|
||||
json_key_file("fastlane-secret.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
|
||||
package_name("io.vikunja.app") # e.g. com.krausefx.app
|
40
android/fastlane/Fastfile
Normal file
40
android/fastlane/Fastfile
Normal file
@ -0,0 +1,40 @@
|
||||
# This file contains the fastlane.tools configuration
|
||||
# You can find the documentation at https://docs.fastlane.tools
|
||||
#
|
||||
# For a list of all available actions, check out
|
||||
#
|
||||
# https://docs.fastlane.tools/actions
|
||||
#
|
||||
# For a list of all available plugins, check out
|
||||
#
|
||||
# https://docs.fastlane.tools/plugins/available-plugins
|
||||
#
|
||||
|
||||
# Uncomment the line if you want fastlane to automatically update itself
|
||||
# update_fastlane
|
||||
|
||||
default_platform(:android)
|
||||
|
||||
platform :android do
|
||||
#desc "Runs all the tests"
|
||||
#lane :test do
|
||||
# gradle(task: "test")
|
||||
#end
|
||||
|
||||
#desc "Submit a new Beta Build to Crashlytics Beta"
|
||||
#lane :beta do
|
||||
# gradle(task: "clean assembleRelease")
|
||||
# crashlytics
|
||||
#
|
||||
# # sh "your_script.sh"
|
||||
# # You can also use other beta testing services here
|
||||
#end
|
||||
|
||||
desc "Deploy a new version to the Google Play"
|
||||
lane :production_appbundle do
|
||||
upload_to_play_store(
|
||||
track: 'production',
|
||||
aab: '../build/app/outputs/bundle/release/app-release.aab',
|
||||
)
|
||||
end
|
||||
end
|
32
android/fastlane/README.md
Normal file
32
android/fastlane/README.md
Normal file
@ -0,0 +1,32 @@
|
||||
fastlane documentation
|
||||
----
|
||||
|
||||
# Installation
|
||||
|
||||
Make sure you have the latest version of the Xcode command line tools installed:
|
||||
|
||||
```sh
|
||||
xcode-select --install
|
||||
```
|
||||
|
||||
For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane)
|
||||
|
||||
# Available Actions
|
||||
|
||||
## Android
|
||||
|
||||
### android deploy
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane android deploy
|
||||
```
|
||||
|
||||
Deploy a new version to the Google Play
|
||||
|
||||
----
|
||||
|
||||
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
|
||||
|
||||
More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools).
|
||||
|
||||
The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
|
13
android/fastlane/report.xml
Normal file
13
android/fastlane/report.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<testsuites>
|
||||
<testsuite name="fastlane.lanes">
|
||||
|
||||
|
||||
|
||||
|
||||
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.001214">
|
||||
|
||||
</testcase>
|
||||
|
||||
</testsuite>
|
||||
</testsuites>
|
8
android/key.properties.asc
Normal file
8
android/key.properties.asc
Normal file
@ -0,0 +1,8 @@
|
||||
-----BEGIN PGP MESSAGE-----
|
||||
|
||||
jA0ECQMIUgIcDv0Yi+P80oABAUcVNbj9bCXNbZOILlXckAalyG4VQsKsrYAbAkLO
|
||||
uAes+85uCB/03C1LLaLyYgkX4QMPH3uEOJ4kLNbsmcvZObGDus+VyzmAaHw3Mpu7
|
||||
xl7PGvJcn9tBvSBAm1rYw10TeRDwkYhAREs4oZ7Rlqmngud57ebbYbeznd/sjDgK
|
||||
LQ==
|
||||
=xnzj
|
||||
-----END PGP MESSAGE-----
|
Loading…
Reference in New Issue
Block a user