mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
👷 Updated CI
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user