👷 Added new action

This commit is contained in:
Nikhil Badyal
2022-10-01 13:36:20 +05:30
parent ccd88951f6
commit c9f1ecd623
2 changed files with 44 additions and 1 deletions
+43
View File
@@ -0,0 +1,43 @@
name: Build Revanced APK for PR
# Enable Buildkit and let compose use it to speed up image building
env:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
on:
workflow_dispatch:
workflow_call:
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: Get Date
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
with:
name: Build APKs
path: |
apks/*-output.apk
apks/VancedMicroG.apk"
if-no-files-found: error
+1 -1
View File
@@ -11,4 +11,4 @@ jobs:
linter:
uses: ./.github/workflows/linter.yml
build-apk:
uses: ./.github/workflows/build-apk.yml
uses: ./.github/workflows/build-apk-artifact.yml