Skip to content

Lygisk CI

Lygisk CI #1262

Workflow file for this run

name: Lygisk CI
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
concurrency:
group: lygisk-ci
cancel-in-progress: false
jobs:
automerge-stable:
uses: ./.github/workflows/automerge.yml
with:
branch: stable
automerge-beta:
uses: ./.github/workflows/automerge.yml
with:
branch: beta
automerge-canary:
uses: ./.github/workflows/automerge.yml
with:
branch: canary
automerge-madness:
uses: ./.github/workflows/automerge.yml
with:
branch: madness
build-stable:
needs: automerge-stable
if: needs.automerge-stable.outputs.changed == 'true'
uses: ./.github/workflows/build.yml
with:
branch: stable
secrets:
KEYSTORE: ${{ secrets.KEYSTORE }}
KEYSTORE_KEY: ${{ secrets.KEYSTORE_KEY }}
build-beta:
needs: automerge-beta
if: needs.automerge-beta.outputs.changed == 'true'
uses: ./.github/workflows/build.yml
with:
branch: beta
secrets:
KEYSTORE: ${{ secrets.KEYSTORE }}
KEYSTORE_KEY: ${{ secrets.KEYSTORE_KEY }}
build-canary:
needs: automerge-canary
if: needs.automerge-canary.outputs.changed == 'true'
uses: ./.github/workflows/build.yml
with:
branch: canary
secrets:
KEYSTORE: ${{ secrets.KEYSTORE }}
KEYSTORE_KEY: ${{ secrets.KEYSTORE_KEY }}
build-madness:
needs: automerge-madness
if: needs.automerge-madness.outputs.changed == 'true'
uses: ./.github/workflows/build.yml
with:
branch: madness
secrets:
KEYSTORE: ${{ secrets.KEYSTORE }}
KEYSTORE_KEY: ${{ secrets.KEYSTORE_KEY }}
deploy:
if: always()
needs: [build-stable, build-beta, build-canary, build-madness]
runs-on: ubuntu-latest
strategy:
matrix:
branch: [ stable, beta, canary, madness ]
fail-fast: false
max-parallel: 1
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/deploy.yml
if: needs[format('build-{0}', matrix.branch)].outputs.changed == 'true'
with:
branch: ${{ matrix.branch }}