Skip to content

Commit

Permalink
CI: Support for dropping builds
Browse files Browse the repository at this point in the history
Change-Id: Id33c26b6050309fd884ad790884ec2a1e7daf8f2
  • Loading branch information
XayahSuSuSu committed Jan 27, 2024
1 parent e36f56c commit f917484
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@ name: Build

on:
workflow_dispatch:
inputs:
Alpha:
description: 'Alpha'
required: true
default: 'true'
Premium:
description: 'Premium'
required: true
default: 'false'
Foss:
description: 'Foss'
required: true
default: 'false'

jobs:
build:
Expand Down Expand Up @@ -56,6 +69,18 @@ jobs:
- name: Move APKs
run: mv ./*/build/outputs/apk/*/release/*.apk .

- name: Drop alpha builds
if: ${{ github.event.inputs.Alpha }} == 'false'
run: rm -rf ./*alpha*.apk

- name: Drop premium builds
if: ${{ github.event.inputs.Premium }} == 'false'
run: rm -rf ./*premium*.apk

- name: Drop foss builds
if: ${{ github.event.inputs.Foss }} == 'false'
run: rm -rf ./*foss*.apk

- name: Upload APKs
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit f917484

Please sign in to comment.