Skip to content

Commit

Permalink
chore: ci_android receives a build parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
w568w committed Mar 18, 2023
1 parent 93d0b34 commit b5b791c
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/ci_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Automated-CI-Android

on:
workflow_dispatch:
inputs:
tag_name:
description: "Tag name for release. If set to nightly, the release will be a pre-release."
required: false
default: nightly

jobs:
Automated-CI-Android:
Expand Down Expand Up @@ -42,11 +47,22 @@ jobs:
run: |
flutter build apk --release
- name: Release
- if: github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name != 'nightly'
name: Release
uses: softprops/action-gh-release@v1
with:
files: build/app/outputs/flutter-apk/app-release.apk
prerelease: false
name: Release ${{ github.ref }}
generate_release_notes: true
fail_on_unmatched_files: true

- if: github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name == 'nightly'
name: Release Nightly
uses: softprops/action-gh-release@v1
with:
files: build/app/outputs/flutter-apk/app-release.apk
prerelease: true
name: Nightly build
generate_release_notes: true
fail_on_unmatched_files: true

0 comments on commit b5b791c

Please sign in to comment.