Files
docker-py-revanced/.github/workflows/build-artifact.yml
T
dependabot[bot] faa00c8940 Bump actions/checkout from 3.5.2 to 3.5.3
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3.5.2...v3.5.3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 05:09:58 +00:00

71 lines
1.7 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
DEBUG_ENABLED:
type: boolean
description: 'Run the build with tmate debugging enabled.'
required: false
default: false
jobs:
build-apk:
name: APK Build
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out Git repository
uses: actions/checkout@v3.5.3
- name: Update Env for custom build
run: |
echo "${{ secrets.ENVS }}" >> .env
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.DEBUG_ENABLED }}
- name: Build Revanced APKs
run: |
docker-compose up --build
- name: Upload Build APKS
uses: actions/upload-artifact@v3.1.2
with:
name: Built-APKs
path: |
apks/*-output.apk
apks/VancedMicroG.apk"
if-no-files-found: error
- 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'