forked from melod1n/fast-messenger
chore: adjust github workflows
This commit is contained in:
+12
-12
@@ -2,9 +2,9 @@ name: Android CI Build
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "dev", "release/*", "hotfix/*", "feature/*" ]
|
branches: [ "master", "hotfix/*", "feature/*" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "dev", "release/*", "hotfix/*", "feature/*" ]
|
branches: [ "master", "hotfix/*", "feature/*" ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
|
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
|
||||||
@@ -12,7 +12,7 @@ env:
|
|||||||
RELEASE_SIGN_KEY_PASSWORD: ${{ secrets.RELEASE_SIGN_KEY_PASSWORD }}
|
RELEASE_SIGN_KEY_PASSWORD: ${{ secrets.RELEASE_SIGN_KEY_PASSWORD }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_apk_aab:
|
build_apks:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
name: Build artifacts
|
name: Build artifacts
|
||||||
steps:
|
steps:
|
||||||
@@ -29,15 +29,6 @@ jobs:
|
|||||||
- name: Grant execute permission for gradlew
|
- name: Grant execute permission for gradlew
|
||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
|
|
||||||
- name: Build and sign debug APK
|
|
||||||
run: ./gradlew assembleDebug
|
|
||||||
|
|
||||||
- name: Upload debug APK
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: app-debug.apk
|
|
||||||
path: app/build/outputs/apk/debug/app-debug.apk
|
|
||||||
|
|
||||||
- name: Build and sign release APK
|
- name: Build and sign release APK
|
||||||
run: ./gradlew assembleRelease
|
run: ./gradlew assembleRelease
|
||||||
|
|
||||||
@@ -46,3 +37,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: app-release.apk
|
name: app-release.apk
|
||||||
path: app/build/outputs/apk/release/app-release.apk
|
path: app/build/outputs/apk/release/app-release.apk
|
||||||
|
|
||||||
|
- name: Build and sign debug APK
|
||||||
|
run: ./gradlew assembleDebug
|
||||||
|
|
||||||
|
- name: Upload debug APK
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: app-debug.apk
|
||||||
|
path: app/build/outputs/apk/debug/app-debug.apk
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
name: Android CI Release
|
name: Android CI Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
push:
|
||||||
branches: [ "master" ]
|
branches: [ "release/*"]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
|
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
|
||||||
@@ -27,15 +27,6 @@ jobs:
|
|||||||
- name: Grant execute permission for gradlew
|
- name: Grant execute permission for gradlew
|
||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
|
|
||||||
- name: Build and sign debug APK
|
|
||||||
run: ./gradlew assembleDebug
|
|
||||||
|
|
||||||
- name: Upload debug APK
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: app-debug.apk
|
|
||||||
path: app/build/outputs/apk/debug/app-debug.apk
|
|
||||||
|
|
||||||
- name: Build and sign release APK
|
- name: Build and sign release APK
|
||||||
run: ./gradlew assembleRelease
|
run: ./gradlew assembleRelease
|
||||||
|
|
||||||
@@ -45,15 +36,6 @@ jobs:
|
|||||||
name: app-release.apk
|
name: app-release.apk
|
||||||
path: app/build/outputs/apk/release/app-release.apk
|
path: app/build/outputs/apk/release/app-release.apk
|
||||||
|
|
||||||
- name: Build and sign debug Bundle
|
|
||||||
run: ./gradlew bundleDebug
|
|
||||||
|
|
||||||
- name: Upload debug Bundle
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: app-debug.aab
|
|
||||||
path: app/build/outputs/bundle/debug/app-debug.aab
|
|
||||||
|
|
||||||
- name: Build and sign release Bundle
|
- name: Build and sign release Bundle
|
||||||
run: ./gradlew bundleRelease
|
run: ./gradlew bundleRelease
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user