👷 Reusable workflow

This commit is contained in:
Nikhil Badyal
2022-10-13 22:22:59 +05:30
parent 9b00ed7b13
commit 851cb9df07
4 changed files with 22 additions and 45 deletions
+39
View File
@@ -0,0 +1,39 @@
name: Build Revanced APK
env:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
on:
workflow_call:
secrets:
ENVS:
required: false
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build-apk:
name: APK Build
runs-on: ubuntu-latest
timeout-minutes: 10
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