Auto post
This commit is contained in:
parent
0e009fabeb
commit
ccf7efb448
|
|
@ -29,6 +29,14 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
chmod +x gradlew
|
chmod +x gradlew
|
||||||
./gradlew assembleRelease
|
./gradlew assembleRelease
|
||||||
|
- name: Post to channel
|
||||||
|
env:
|
||||||
|
CHANNEL_ID: ${{ secrets.CHANNEL_ID }}
|
||||||
|
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
||||||
|
run: |
|
||||||
|
OUTPUT="app/build/outputs"
|
||||||
|
export name=$(find $OUTPUT/apk -name "*.apk")
|
||||||
|
curl https://api.telegram.org/bot${BOT_TOKEN}/sendDocument -X POST -F chat_id="$CHANNEL_ID" -F document="@$name"
|
||||||
- uses: actions/upload-artifact@master
|
- uses: actions/upload-artifact@master
|
||||||
name: Upload artifact
|
name: Upload artifact
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,12 @@ android {
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
targetCompatibility = 1.8
|
targetCompatibility = 1.8
|
||||||
}
|
}
|
||||||
|
|
||||||
|
applicationVariants.all { variant ->
|
||||||
|
variant.outputs.all { output ->
|
||||||
|
outputFileName = "EdXposedManagerR-${defaultConfig.versionName}-${defaultConfig.versionCode}-${buildType.name}.apk"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue