-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a workflow for publishing flutter packages #1286
base: master
Are you sure you want to change the base?
Conversation
Closes #1259 Add a second copy of the publish workflow with `use-flutter: true`. Add `ignore-packages` to both workflows to ignore published packages for the non-relevant SDK.
It looked like it was specified as a string, so I assumed we should use the comma separated format as if it were passed as a CLI arg, but that doesn't seem to have any effect.
Github actions don't support yaml lists?
Does the comment show up on the PR?
@@ -12,6 +12,8 @@ jobs: | |||
publish: | |||
if: ${{ github.repository_owner == 'dart-lang' }} | |||
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main | |||
with: | |||
ignore-packages: pkgs/cupertino_http,pkgs/cronet_http,pkgs/ok_http | |||
permissions: | |||
id-token: write # Required for authentication using OIDC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@devoncarew - Are these config lines stale? I don't see the same in the other repos I checked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Package publishing
Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation. |
This reverts commit 35f8076.
if: ${{ github.repository_owner == 'dart-lang' }} | ||
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main | ||
with: | ||
use-flutter: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like something we should auto-detect, right? Maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It did initially, and then that functionality was removed.
dart-lang/ecosystem#158
I'm not sure I understand the "We need the flag anyhow to decide whether to setup Flutter in the first place" statement. @mosuem do you recall what this meant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It means that instead of setting up dart via setup-dart
, we would use the setup-flutter
action. To auto-detect, we would to implement that before running the dart setup, so in a bash script in the github workflow itself (or a dart script, by running an additional setup-
step before).
Is this ready to land? |
Closes #1259
Add a second copy of the publish workflow with
use-flutter: true
.Add
ignore-packages
to both workflows to ignore published packages forthe non-relevant SDK.