Mayil-AI / AntennaPod_mar15_2024

GNU General Public License v3.0
0 stars 0 forks source link

Upload AntennaPod APK to GitHub release page (hashtag7056) #4

Open vikramsubramanian opened 3 months ago

vikramsubramanian commented 3 months ago

hashtaghashtaghashtag Checklist

hashtaghashtaghashtag App version

0.0.0

hashtaghashtaghashtag Where did you get the app from

Other

hashtaghashtaghashtag Problem you may be having, or feature you want

Play Store is blocked in my country. Please upload AntennaPod APK to GitHub release page.

hashtaghashtaghashtag Suggested solution

No response

hashtaghashtaghashtag Screenshots / Drawings / Technical details

No response )

mayil-ai[bot] commented 3 months ago

Possible Solution

To address the feature request to upload AntennaPod APK to the GitHub release page, you can follow these steps:

Here is a sample GitHub Actions workflow to automate the process:

name: Release

on:
  push:
    tags:
      - 'v*'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Check out code
        uses: actions/checkout@v2

      - name: Set up JDK
        uses: actions/setup-java@v2
        with:
          java-version: '11'

      - name: Build APK
        run: ./gradlew assembleRelease

      - name: Upload APK to GitHub Release
        id: upload-release-asset
        uses: actions/upload-release-asset@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          upload_url: ${{ github.event.release.upload_url }}
          asset_path: ./app/build/outputs/apk/release/app-release.apk
          asset_name: AntennaPod-v${{ github.ref }}.apk
          asset_content_type: application/vnd.android.package-archive

This workflow will automatically build the APK and upload it to the GitHub release page whenever a new tag is pushed that matches the pattern 'v*'.

Code snippets to check

.github → ISSUE_TEMPLATE → config.yml This snippet contains a contact link related to F-Droid releases, which might be relevant for providing information about APK availability and could be updated to include a link to the GitHub release page if the APK is to be uploaded there. https://github.com/Mayil-AI/AntennaPod_mar15_2024/blob/cae848b5050ef2b7acd5c000e8def62f189b3632/.github/ISSUE_TEMPLATE/config.yml#L1-L8