Try build android app from release
This commit is contained in:
65
.github/workflows/release.yml
vendored
65
.github/workflows/release.yml
vendored
@ -44,7 +44,64 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tagName: ${{ github.ref_name }}
|
tagName: ${{ github.ref_name }}
|
||||||
releaseName: "Snort v__VERSION__"
|
app:
|
||||||
releaseBody: "See the assets to download and install this version."
|
runs-on: ubuntu-latest
|
||||||
releaseDraft: true
|
permissions:
|
||||||
prerelease: false
|
contents: write
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up JDK 17
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 17
|
||||||
|
|
||||||
|
- name: Cache gradle
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ~/.gradle/caches
|
||||||
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
|
- name: Install frontend dependencies
|
||||||
|
run: yarn install
|
||||||
|
|
||||||
|
- name: Build Site
|
||||||
|
run: yarn build
|
||||||
|
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: https://git.v0l.io/Kieran/snort_android.git
|
||||||
|
path: snort_android
|
||||||
|
|
||||||
|
- name: Copy files
|
||||||
|
run: cp packages/app/build/* snort_android/app/src/main/assets/
|
||||||
|
|
||||||
|
- name: Build AAB
|
||||||
|
working-directory: snort_android
|
||||||
|
run: ./gradlew clean bundleRelease --stacktrace
|
||||||
|
- name: Build APK
|
||||||
|
working-directory: snort_android
|
||||||
|
run: ./gradlew assembleRelease --stacktrace
|
||||||
|
|
||||||
|
- name: Sign
|
||||||
|
uses: r0adkll/sign-android-release@v1
|
||||||
|
with:
|
||||||
|
releaseDirectory: snort_android/app/release
|
||||||
|
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
|
||||||
|
alias: ${{ secrets.KEY_ALIAS }}
|
||||||
|
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
|
||||||
|
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Upload assets
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
snort_android/app/release/app-release.aab
|
||||||
|
snort_android/app/release/app-universal-release.apk
|
||||||
|
snort_android/app/release/app-arm64-v8a-release.apk
|
||||||
|
snort_android/app/release/app-x86_64-release.apk
|
||||||
|
snort_android/app/release/app-armeabi-v7a-release.apk
|
Reference in New Issue
Block a user