Files
docker-py-revanced/.github/workflows/build-apk.yml
T
diwike4341 e3d79fe4e6 30 != 10
Fix workflow task name.
2022-09-29 09:35:31 +00:00

52 lines
1.3 KiB
YAML

name: Build Revanced APK
# Enable Buildkit and let compose use it to speed up image building
env:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
on:
workflow_dispatch:
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: Delete Older Releases
uses: nikhilbadyal/ghaction-rm-releases@v0.0.2
with:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
RELEASE_PATTERN: 'Build*'
- name: Upload Build Artifact
uses: ncipollo/release-action@v1.10.0
with:
artifacts: "apks/*-output.apk,apks/VancedMicroG.apk"
token: ${{ secrets.GH_TOKEN }}
tag: Build-${{ steps.get-date.outputs.date }}
artifactErrorsFailBuild: true
generateReleaseNotes: true
- name: Sleep for 10 seconds
run: |
sleep 10