Setup Flutter in publish workflow (#157)
diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml
index 247fdcb..8b39fea 100644
--- a/.github/workflows/publish.yaml
+++ b/.github/workflows/publish.yaml
@@ -27,6 +27,16 @@
# with:
# sdk: beta
+# When using this package to publish Flutter packages, the `use_flutter`
+# parameter should be set. The `sdk` parameter is then used to specify
+# the Flutter SDK.
+#
+# jobs:
+# publish:
+# uses: dart-lang/ecosystem/.github/workflows/publish.yml@main
+# with:
+# use_flutter: true
+
on:
workflow_call:
inputs:
@@ -46,6 +56,12 @@
default: "stable"
required: false
type: string
+ use_flutter:
+ description: >-
+ Whether to setup Flutter in this workflow.
+ default: false
+ required: false
+ type: boolean
jobs:
# Note that this job does not require the specified environment.
@@ -87,7 +103,14 @@
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
+
+ - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
+ if: ${{ inputs.use_flutter }}
+ with:
+ channel: ${{ inputs.sdk }}
+
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
+ if: ${{ !inputs.use_flutter }}
with:
sdk: ${{ inputs.sdk }}
diff --git a/pkgs/base_repo b/pkgs/base_repo
deleted file mode 160000
index 65817bf..0000000
--- a/pkgs/base_repo
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 65817bf10a4e5c45a99299aa4ae92a0993bf9847
diff --git a/pkgs/firehose/CHANGELOG.md b/pkgs/firehose/CHANGELOG.md
index 5d0a58f..db78347 100644
--- a/pkgs/firehose/CHANGELOG.md
+++ b/pkgs/firehose/CHANGELOG.md
@@ -1,3 +1,6 @@
+## 0.3.27
+
+- Fix Flutter support.
## 0.3.26
- Add support for Flutter package auto-publishing, fixing [#154](https://github.com/dart-lang/ecosystem/issues/154).
diff --git a/pkgs/firehose/pubspec.yaml b/pkgs/firehose/pubspec.yaml
index bc0c4e0..2577743 100644
--- a/pkgs/firehose/pubspec.yaml
+++ b/pkgs/firehose/pubspec.yaml
@@ -1,6 +1,6 @@
name: firehose
description: A tool to automate publishing of Pub packages from GitHub actions.
-version: 0.3.26
+version: 0.3.27
repository: https://github.com/dart-lang/ecosystem/tree/main/pkgs/firehose
environment: