-
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?
Changes from 7 commits
9ecbcf2
341df34
5461fb9
59652e3
c7fb522
2f8ad31
0b2ca7c
35f8076
f6741fa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# A CI configuration to auto-publish pub packages. | ||
|
||
name: Publish Flutter Packages | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
push: | ||
tags: [ '[A-z]+-v[0-9]+.[0-9]+.[0-9]+' ] | ||
|
||
jobs: | ||
publish: | ||
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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. It did initially, and then that functionality was removed. 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 commentThe reason will be displayed to describe this comment to others. Learn more. It means that instead of setting up dart via |
||
ignore-packages: pkgs/http,pkgs/http_profile,pkgs/web_socket | ||
permissions: | ||
id-token: write # Required for authentication using OIDC | ||
pull-requests: write # Required for writing the pull request note |
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.
Latest from here: https://github.com/dart-lang/ecosystem/blob/main/pkgs/blast_repo/lib/src/tweaks/auto_publish_tweak.dart