mirror of
https://github.com/immich-app/immich.git
synced 2024-12-22 01:47:08 +02:00
Remove Android Build From Github Action (#49)
This commit is contained in:
parent
46e344bb92
commit
e196ff1e2f
43
.github/workflows/build_apk.yml
vendored
43
.github/workflows/build_apk.yml
vendored
@ -1,43 +0,0 @@
|
|||||||
name: Build APK Android
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: ./mobile
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
# Build
|
|
||||||
- uses: subosito/flutter-action@v2
|
|
||||||
with:
|
|
||||||
channel: "stable"
|
|
||||||
cache: true
|
|
||||||
cache-key: flutter2.10 # optional, change this to force refresh cache
|
|
||||||
env:
|
|
||||||
KEY_JKS: ${{ secrets.SIGNING_KEY }}
|
|
||||||
SIGNING_KEY_ALIAS: ${{ secrets.ALIAS }}
|
|
||||||
SIGNING_KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
|
|
||||||
SIGNING_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
|
|
||||||
- name: Decode Keystore
|
|
||||||
run: |
|
|
||||||
echo "${{secrets.SIGNING_KEY}}" > release.keystore.asc
|
|
||||||
gpg --decrypt --passphrase "${{secrets.KEY_STORE_PASSWORD}}" --batch release.keystore.asc > android/key.jks
|
|
||||||
- name: Create key.properties
|
|
||||||
run: touch mobile/android/key.properties echo "storePassword=<storePassword> keyPassword=<keyPassword> keyAlias=<keyAlias> storeFile=../key.jks" > android/key.properties
|
|
||||||
- run: flutter --version
|
|
||||||
- run: flutter pub get
|
|
||||||
- run: flutter build apk
|
|
||||||
- run: flutter build appbundle
|
|
||||||
|
|
||||||
# Upload Artifact
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: release-apk
|
|
||||||
path: mobile/build/app/outputs/apk/release/app-release.apk
|
|
@ -1,4 +1,4 @@
|
|||||||
name: Build+push Immich
|
name: Build Server
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# Triggers the workflow on push or pull request events but only for the main branch
|
# Triggers the workflow on push or pull request events but only for the main branch
|
Loading…
Reference in New Issue
Block a user