Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e894f8f0 authored by Ellen Poe's avatar Ellen Poe
Browse files

ci: fix release pipeline links

parent cb1f76e7
Loading
Loading
Loading
Loading
Loading
+21 −16
Original line number Diff line number Diff line
@@ -260,24 +260,29 @@ release:
      # Build APKs for each architecture
      ./gradlew assembleArm64Release --info --stacktrace --no-daemon
      ./gradlew assembleX86_64Release --info --stacktrace --no-daemon
    # Install glab CLI for release creation
    - cd ..
    - curl -fsSL https://gitlab.com/gitlab-org/cli/-/releases/permalink/latest/downloads/glab_Linux_x86_64.tar.gz | sudo tar -xz -C /usr/local/bin glab
    # Create release with glab
    - |
      glab release create "$CI_COMMIT_TAG" \
        --name "Cardinal Maps ${CI_COMMIT_TAG#v}" \
        --notes "## Cardinal Maps ${CI_COMMIT_TAG#v}

      ### APK Files
      - \`app-arm64-release.apk\` - For ARM64 devices (most modern Android phones)
      - \`app-x86_64-release.apk\` - For x86_64 devices (emulators, some tablets)

      Choose the appropriate file for your device architecture. If unsure, try the ARM64 version first as it works on most modern Android devices." \
        "cardinal-android/app/build/outputs/apk/arm64/release/app-arm64-release.apk#app-arm64-release.apk#package" \
        "cardinal-android/app/build/outputs/apk/x86_64/release/app-x86_64-release.apk#app-x86_64-release.apk#package"
  artifacts:
    paths:
      - cardinal-android/app/build/outputs/apk/arm64/release/app-arm64-release.apk
      - cardinal-android/app/build/outputs/apk/x86_64/release/app-x86_64-release.apk
    expire_in: 7 days
  release:
    tag_name: $CI_COMMIT_TAG
    name: 'Cardinal Maps ${CI_COMMIT_TAG#v}'
    description: |
      ## Cardinal Maps ${CI_COMMIT_TAG#v}
      
      This release includes separate builds for different architectures:
      
      ### APK Files (for sideloading)
      - `app-arm64-release.apk` - For ARM64 devices (most modern Android phones)
      - `app-x86_64-release.apk` - For x86_64 devices (emulators, some tablets)
      
      Choose the appropriate file for your device architecture. If unsure, try the ARM64 version first as it works on most modern Android devices.
    assets:
      links:
        - name: 'app-arm64-release.apk'
          url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/cardinal-android/app/build/outputs/apk/arm64/release/app-arm64-release.apk'
          link_type: 'package'
        - name: 'app-x86_64-release.apk'
          url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/cardinal-android/app/build/outputs/apk/x86_64/release/app-x86_64-release.apk'
          link_type: 'package'