mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
👷 Reusable workflow
This commit is contained in:
@@ -22,30 +22,9 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
build-apk:
|
build-apk:
|
||||||
name: APK Build
|
uses: ./.github/workflows/build-artifact.yml
|
||||||
runs-on: ubuntu-latest
|
secrets:
|
||||||
timeout-minutes: 10
|
ENVS: ${{ secrets.ENVS }}
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Check out Git repository
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Update Env for custom build
|
|
||||||
run: |
|
|
||||||
echo "${{ secrets.ENVS }}" >> .env
|
|
||||||
|
|
||||||
- name: Build Revanced APKs
|
|
||||||
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:
|
upload-to-github:
|
||||||
name: GitHub Upload
|
name: GitHub Upload
|
||||||
|
|||||||
@@ -1,18 +1,21 @@
|
|||||||
name: Build Artifacts PR
|
name: Build Revanced APK
|
||||||
env:
|
env:
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
COMPOSE_DOCKER_CLI_BUILD: 1
|
COMPOSE_DOCKER_CLI_BUILD: 1
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
secrets:
|
||||||
|
ENVS:
|
||||||
|
required: false
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.head_ref || github.run_id }}
|
group: ${{ github.head_ref || github.run_id }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
build-apk-pr:
|
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
|
||||||
@@ -26,15 +29,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker-compose up
|
docker-compose up
|
||||||
|
|
||||||
- name: Get Date
|
- name: Upload Build APKS
|
||||||
id: get-date
|
|
||||||
run: |
|
|
||||||
echo ::set-output name=date::$(TZ='Asia/Kolkata' date +"%Y.%m.%d-%H.%M.%S")
|
|
||||||
|
|
||||||
- name: Upload Build Artifact
|
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Build APKs
|
name: Built-APKs
|
||||||
path: |
|
path: |
|
||||||
apks/*-output.apk
|
apks/*-output.apk
|
||||||
apks/VancedMicroG.apk"
|
apks/VancedMicroG.apk"
|
||||||
@@ -11,4 +11,4 @@ jobs:
|
|||||||
linter-pr-check:
|
linter-pr-check:
|
||||||
uses: ./.github/workflows/linter.yml
|
uses: ./.github/workflows/linter.yml
|
||||||
build-apk-pr-check:
|
build-apk-pr-check:
|
||||||
uses: ./.github/workflows/build-apk-artifact.yml
|
uses: ./.github/workflows/build-artifact.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user