Skip to content

Commit 9ecbcf2

Browse files
committed
Add a workflow for publishing flutter packages
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.
1 parent 73fce77 commit 9ecbcf2

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

Diff for: .github/workflows/publish.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# A CI configuration to auto-publish pub packages.
22

3-
name: Publish
3+
name: Publish Dart Packages
44

55
on:
66
pull_request:
@@ -15,3 +15,4 @@ jobs:
1515
permissions:
1616
id-token: write # Required for authentication using OIDC
1717
pull-requests: write # Required for writing the pull request note
18+
ignore-packages: pkgs/cupertino_http/,pkgs/cronet_http/,pkgs/ok_http/

Diff for: .github/workflows/publish_flutter.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# A CI configuration to auto-publish pub packages.
2+
3+
name: Publish Flutter Packages
4+
5+
on:
6+
pull_request:
7+
branches: [ master ]
8+
push:
9+
tags: [ '[A-z]+-v[0-9]+.[0-9]+.[0-9]+' ]
10+
11+
jobs:
12+
publish:
13+
if: ${{ github.repository_owner == 'dart-lang' }}
14+
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
15+
permissions:
16+
id-token: write # Required for authentication using OIDC
17+
pull-requests: write # Required for writing the pull request note
18+
use-flutter: true
19+
ignore-packages: pkgs/http/,pkgs/http_profile/,pkgs/web_socket/,

0 commit comments

Comments
 (0)