adding in automated workflow
This commit is contained in:
parent
406c017696
commit
e169a7c3bf
|
|
@ -10,13 +10,6 @@ jobs:
|
|||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
RVX_SENTRY_DSN: ${{ vars.RVX_SENTRY_DSN }}
|
||||
RVX_ANALYSIS_ENABLED: ${{ vars.RVX_ANALYSIS_ENABLED }}
|
||||
RVX_ANALYSIS_BASEURL: ${{ vars.RVX_ANALYSIS_BASEURL }}
|
||||
RVX_DEBUG_APP_NAME: ${{ vars.RVX_DEBUG_APP_NAME }}
|
||||
RVX_BUILD_FLAVOUR_ID: ${{ vars.RVX_BUILD_FLAVOUR_ID }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
|
@ -32,16 +25,22 @@ jobs:
|
|||
- name: Setup Android SDK
|
||||
uses: android-actions/setup-android@v2
|
||||
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
- name: Set up repo
|
||||
run: chmod +x gradlew && deno run -A scripts/download_deps.ts --yes && cp revoltbuild.properties.example revoltbuild.properties && cp sentry.properties.example sentry.properties && cp app/google-services.json.example app/google-services.json && git submodule update --init --recursive
|
||||
|
||||
- name: Add signing key from the KEYSTORE_BASE64 github actions secret
|
||||
run: echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 --decode > app/release-key.keystore
|
||||
|
||||
- name: Add revoltbuild.properties from the revoltbuildPropertiesbase64 secret
|
||||
run: echo "${{ secrets.REVOLTBUILD_PROPERTIES_BASE64 }}" | base64 --decode > revoltbuild.properties
|
||||
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew --no-daemon assembleDebug
|
||||
run: ./gradlew --no-daemon assembleRelease
|
||||
|
||||
- name: Archive debug APK
|
||||
- name: Archive release APK
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: debug-apk
|
||||
name: release-apk
|
||||
retention-days: 5
|
||||
path: |
|
||||
app/build/outputs/apk/debug/app-debug.apk
|
||||
app/build/outputs/apk/release/app-release.apk
|
||||
Loading…
Reference in New Issue