diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml
index 798534a..1de9bf7 100644
--- a/.github/workflows/build-apk.yml
+++ b/.github/workflows/build-apk.yml
@@ -127,6 +127,40 @@ jobs:
DOWNLOAD_GITHUB_REPOSITORY: ${{ secrets.ROOT_DOWNLOAD_GITHUB_REPOSITORY }}
MESSAGE: ${{ secrets.MESSAGE_ROOT }}
+ apprise-notifier:
+ needs: build-apk
+ name: Apprise Notifier
+ runs-on: ubuntu-latest
+ timeout-minutes: 15
+
+ steps:
+ - name: Download Already Built APKs
+ uses: actions/download-artifact@main
+ with:
+ name: Built-APKs
+
+ - name: Find all built apks
+ id: ff
+ run: |
+ apk_list=""
+ for filename in $(find . -name "*-output.apk" -type f); do
+ apk_list="$apk_list,$filename"
+ done
+ apk_list=${apk_list:1}
+ echo "apks=$apk_list" >> "$GITHUB_OUTPUT"
+ is_present=$([ -n "${{ secrets.APPRISE_URL }}" ] && echo true || echo false );
+ echo "has_apprise_url=$is_present" >> $GITHUB_OUTPUT
+ - name: Print files
+ run: echo "${{ steps.ff.outputs.apks }} ${{ steps.ff.outputs.has_apprise_url }}"
+
+ - name: Upload to Telegram
+ uses: nikhilbadyal/ghaction-apprise@main
+ if: ${{ steps.ff.outputs.has_apprise_url }} == 'true'
+ with:
+ APPRISE_URL: ${{ secrets.APPRISE_URL }}
+ APPRISE_NOTIFICATION_BODY: ${{ secrets.APPRISE_NOTIFICATION_BODY }}
+ APPRISE_NOTIFICATION_TITLE: ${{ secrets.APPRISE_NOTIFICATION_TITLE }}
+ APPRISE_ATTACHMENTS: ${{ steps.ff.outputs.apks }}
cleanup:
name: GitHub Cleanup
diff --git a/README.md b/README.md
index 3822e7d..14ae8d1 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# 🤓Docker-Py-ReVanced
-A little python script that will help you in building Revanced [apps](#patch-apps).
+A little python script that will help you in building Revanced [apps](#patch-apps) and sharing them anywhere.
**`Note`** - If you are a root user and want magisk module (Extended). Get them [here](https://github.com/nikhilbadyal/revanced-magisk-module)
@@ -124,6 +124,9 @@ You can use any of the following methods to build.
| [TELEGRAM_API_ID](#telegram-support) | Used for telegram Authentication | None |
| [TELEGRAM_API_HASH](#telegram-support) | Used for telegram Authentication | None |
| [EXTRA_FILES](#extra-files) | Extra files apk to upload in GitHub upload. | None |
+| [APPRISE_URL](#apprise) | Apprise URL . | None |
+| [APPRISE_NOTIFICATION_TITLE](#apprise) | Apprise Notification Title . | None |
+| [APPRISE_NOTIFICATION_BODY](#apprise) | Apprise Notification Body . | None |
`*` - Can be overridden for individual app.
### App Level Config
@@ -407,3 +410,11 @@ You can use any of the following methods to build.
once. Add it in `GitHub secrets`.
17. Sample Envs
+18. [Apprise](https://github.com/caronc/apprise)
+ We also have apprise support to upload built apk anywhere.To use apprise. Add belows envs in `.env` file
+ or in `ENVS` in `GitHub secrets` (Recommended) in the format
+ ```ini
+ APPRISE_URL=tgram://bot-token/chat-id
+ APPRISE_NOTIFICATION_BODY=What a great Body
+ APPRISE_NOTIFICATION_TITLE=What a great title
+ ```