diff --git a/.github/workflows/build-apk-from-latest.yml b/.github/workflows/build-apk-from-latest.yml deleted file mode 100644 index 849750279ba..00000000000 --- a/.github/workflows/build-apk-from-latest.yml +++ /dev/null @@ -1,105 +0,0 @@ -name: Build apk from latest - -on: - workflow_dispatch: - push: - tags: - - latest - schedule: - # Runs Saturdays 21:00 UTC - - cron: "0 21 * * 6" - -permissions: - # Only need read access to repository contents - contents: read - -jobs: - build_apks: - # Job to build APKs for the latest commit and the commit that triggered the workflow - name: Build Signed APK - runs-on: ubuntu-latest - - env: - BUILD_TOOLS_VERSION: "34.0.0" - - steps: - # Checkout the specific commit - - name: Checkout specific commit - uses: actions/checkout@v5 - with: - ref: latest - - # Set up Java JDK required for Gradle - - name: Set up JDK - uses: actions/setup-java@v5 - with: - distribution: temurin - java-version: '17' - - # Set up Android SDK and build tools - - name: Set up Android SDK - uses: android-actions/setup-android@v3 - - # Cache Gradle dependencies to speed up builds - - name: Cache Gradle - uses: actions/cache@v4 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-gradle- - - # Build the APK - - name: Build APK - run: ./gradlew assembleqaRelease --no-daemon --stacktrace --info - - # Copy the built APK to a commit-specific name - - name: Get apk - run: cp owncloudApp/build/outputs/apk/qa/release/owncloud_*-qa-release*.apk owncloud-latest.apk - - # Decode keystore from secret for signing - - name: Restore keystore - run: | - echo "${{ secrets.TEST_KS_B64 }}" | base64 --decode > ./test.keystore - - # Align and sign the APK - - name: Sign APK - run: | - APK_INPUT="owncloud-latest.apk" - APK_ALIGNED="owncloud-latest-aligned.apk" - APK_SIGNED="owncloudSigned-latest.apk" - KEYSTORE="./test.keystore" - KEY_ALIAS="${{ secrets.TEST_KS_ALIAS }}" - KEY_PASSWORD="${{ secrets.TEST_KS_KEY }}" - - # Align APK for optimal performance - echo "Aligning APK..." - $ANDROID_SDK_ROOT/build-tools/${{ env.BUILD_TOOLS_VERSION }}/zipalign -v -p 4 "$APK_INPUT" "$APK_ALIGNED" - - # Sign APK using keystore - echo "Signing APK..." - $ANDROID_SDK_ROOT/build-tools/${{ env.BUILD_TOOLS_VERSION }}/apksigner sign \ - --ks "$KEYSTORE" \ - --ks-type PKCS12 \ - --ks-pass pass:"$KEY_PASSWORD" \ - --key-pass pass:"$KEY_PASSWORD" \ - --ks-key-alias "$KEY_ALIAS" \ - --out "$APK_SIGNED" \ - "$APK_ALIGNED" - - echo "Signed APK: $APK_SIGNED" - - # Clean up temporary files - rm -f "$APK_ALIGNED" - rm -f ./test.keystore - - # Upload the signed APK as an artifact - - name: Upload APK as artifact - uses: actions/upload-artifact@v5 - with: - name: owncloudSigned-latest - path: ./owncloudSigned-latest.apk - retention-days: 7 - diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c08f9e1e47..7b746dd9f40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,7 +48,6 @@ ownCloud admins and users. * Enhancement - Create a new space: [#4606](https://github.com/owncloud/android/issues/4606) * Enhancement - Edit a space: [#4607](https://github.com/owncloud/android/issues/4607) * Enhancement - Disable/Remove a space: [#4611](https://github.com/owncloud/android/issues/4611) -* Enhancement - New workflow to generate a build from "latest" tag on demand: [#4681](https://github.com/owncloud/android/pull/4681) * Enhancement - Show space quota: [#4693](https://github.com/owncloud/android/issues/4693) * Enhancement - Add user role to spaces: [#4698](https://github.com/owncloud/android/pull/4698) @@ -135,13 +134,6 @@ ownCloud admins and users. https://github.com/owncloud/android/issues/4611 https://github.com/owncloud/android/pull/4696 -* Enhancement - New workflow to generate a build from "latest" tag on demand: [#4681](https://github.com/owncloud/android/pull/4681) - - New workflow has been added to GitHub Actions to build signed apk from "latest" - tag when the tag is pushed, every 2 months or manually triggered. - - https://github.com/owncloud/android/pull/4681 - * Enhancement - Show space quota: [#4693](https://github.com/owncloud/android/issues/4693) The used and total values of the space quota have been added to the bottom sheet diff --git a/changelog/unreleased/4681 b/changelog/unreleased/4681 deleted file mode 100644 index 135b9ab94c1..00000000000 --- a/changelog/unreleased/4681 +++ /dev/null @@ -1,5 +0,0 @@ -Enhancement: New workflow to generate a build from "latest" tag on demand - -New workflow has been added to GitHub Actions to build signed apk from "latest" tag when the tag is pushed, every 2 months or manually triggered. - -https://github.com/owncloud/android/pull/4681