👷 Updated CI

This commit is contained in:
Nikhil Badyal
2022-10-13 14:26:11 +05:30
parent 24845e8748
commit 68dd1dea9f
2 changed files with 31 additions and 4 deletions
+30 -3
View File
@@ -13,7 +13,7 @@ jobs:
build-apk:
name: APK Build
runs-on: ubuntu-latest
timeout-minutes: 20
timeout-minutes: 10
steps:
- name: Check out Git repository
@@ -27,6 +27,26 @@ jobs:
run: |
docker-compose up
- name: Upload Build APKS
uses: actions/upload-artifact@v3
with:
name: Built-APKs
path: |
apks/*-output.apk
apks/VancedMicroG.apk"
if-no-files-found: error
upload-to-github:
name: GitHub Upload
runs-on: ubuntu-latest
timeout-minutes: 5
needs: build-apk
steps:
- name: Download Already Built APKs
uses: actions/download-artifact@v3
with:
name: Built-APKs
- name: Get Date
id: get-date
run: |
@@ -41,7 +61,7 @@ jobs:
- name: Upload Build Artifact
uses: ncipollo/release-action@v1.11.1
with:
artifacts: "apks/*-output.apk,apks/VancedMicroG.apk"
artifacts: "*-output.apk"
token: ${{ secrets.GH_TOKEN }}
tag: Build-${{ steps.get-date.outputs.date }}
artifactErrorsFailBuild: true
@@ -50,9 +70,16 @@ jobs:
run: |
sleep 10
upload-to-telegram:
name: Telegram Upload
runs-on: ubuntu-latest
timeout-minutes: 5
needs: [ build-apk,upload-to-github ]
steps:
- name: Upload to Telegram
if: ${{ env.HAVE_TELEGRAM_API_ID == 'true' }}
uses: nikhilbadyal/ghaction-telegram-uploader@main
if: ${{ env.HAVE_TELEGRAM_API_ID == 'true' }}
with:
API_ID: ${{ secrets.TELEGRAM_API_ID }}
API_HASH: ${{ secrets.TELEGRAM_API_HASH }}