Files
docker-py-revanced/.github/workflows/build-artifact.yml
T

63 lines
1.4 KiB
YAML

name: Build & Upload
env:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
on:
workflow_dispatch:
inputs:
FILES_TO_EXPECT:
type: string
required: false
default: '-1'
workflow_call:
secrets:
ENVS:
required: false
inputs:
FILES_TO_EXPECT:
type: string
required: false
default: '-1'
COMMIT_CHANGELOG:
type: boolean
required: false
default: false
jobs:
build-apk:
name: APK Build
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Check out Git repository
uses: actions/checkout@v3.1.0
- name: Update Env for custom build
run: |
echo "${{ secrets.ENVS }}" >> .env
- name: Build Revanced APKs
run: |
docker-compose up
- name: Upload Build APKS
uses: nikhilbadyal/upload-artifact@count-check
with:
name: Built-APKs
path: |
apks/*-output.apk
apks/VancedMicroG.apk"
if-no-files-found: error
files-to-expect: ${{ inputs.FILES_TO_EXPECT }}
- name: Commit Update file
if: ${{ inputs.COMMIT_CHANGELOG }}
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: changelogs
skip_checkout: true
file_pattern: changelog.md
commit_message: 🚀New Build
push_options: '--force'