Merge pull request #41 from nikhilbadyal/workflow-update

👷 Updated CI
This commit is contained in:
Nikhil Badyal
2022-10-13 20:12:24 +05:30
committed by GitHub
2 changed files with 31 additions and 4 deletions
+30 -3
View File
@@ -13,7 +13,7 @@ jobs:
build-apk: build-apk:
name: APK Build name: APK Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 20 timeout-minutes: 10
steps: steps:
- name: Check out Git repository - name: Check out Git repository
@@ -27,6 +27,26 @@ jobs:
run: | run: |
docker-compose up 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 - name: Get Date
id: get-date id: get-date
run: | run: |
@@ -41,7 +61,7 @@ jobs:
- name: Upload Build Artifact - name: Upload Build Artifact
uses: ncipollo/release-action@v1.11.1 uses: ncipollo/release-action@v1.11.1
with: with:
artifacts: "apks/*-output.apk,apks/VancedMicroG.apk" artifacts: "*-output.apk"
token: ${{ secrets.GH_TOKEN }} token: ${{ secrets.GH_TOKEN }}
tag: Build-${{ steps.get-date.outputs.date }} tag: Build-${{ steps.get-date.outputs.date }}
artifactErrorsFailBuild: true artifactErrorsFailBuild: true
@@ -50,9 +70,16 @@ jobs:
run: | run: |
sleep 10 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 - name: Upload to Telegram
if: ${{ env.HAVE_TELEGRAM_API_ID == 'true' }}
uses: nikhilbadyal/ghaction-telegram-uploader@main uses: nikhilbadyal/ghaction-telegram-uploader@main
if: ${{ env.HAVE_TELEGRAM_API_ID == 'true' }}
with: with:
API_ID: ${{ secrets.TELEGRAM_API_ID }} API_ID: ${{ secrets.TELEGRAM_API_ID }}
API_HASH: ${{ secrets.TELEGRAM_API_HASH }} API_HASH: ${{ secrets.TELEGRAM_API_HASH }}
+1 -1
View File
@@ -168,7 +168,7 @@ class Downloader(object):
["revanced", "revanced-cli", self.config.normal_cli_jar], ["revanced", "revanced-cli", self.config.normal_cli_jar],
["revanced", "revanced-integrations", self.config.normal_integrations_apk], ["revanced", "revanced-integrations", self.config.normal_integrations_apk],
["revanced", "revanced-patches", self.config.normal_patches_jar], ["revanced", "revanced-patches", self.config.normal_patches_jar],
["inotia00", "VancedMicroG", "VancedMicroG.apk"], ["inotia00", "VancedMicroG", "VancedMicroG-output.apk"],
] ]
if self.config.build_extended: if self.config.build_extended:
assets += [ assets += [