File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 11name : Publish to Pub.dev & Github
22on :
3+ workflow_dispatch :
34 pull_request :
45 types :
56 - closed
67 branches :
78 - main
89 - rel/**
910
11+ permissions :
12+ id-token : write # Required for authentication using OIDC
13+ contents : write
14+
1015jobs :
1116 publish :
1217 if : |
13- github.event.pull_request.merged == true &&
14- contains(github.event.pull_request.title, 'chore: Release')
18+ github.event_name == 'workflow_dispatch' ||
19+ (github.event.pull_request.merged == true &&
20+ contains(github.event.pull_request.title, 'chore: Release'))
1521 runs-on : ubuntu-latest
1622 outputs :
1723 version : ${{ steps.version.outputs.version }}
2228 - name : Set up Flutter
2329 uses : ./.github/actions/setup-flutter
2430
31+ # This step is what enables Dart's OIDC "trusted publishing" wiring.
32+ # Even though you publish with flutter, OIDC creds are handled via Dart tooling.
33+ - uses : dart-lang/setup-dart@v1
34+
2535 - name : Get version from pubspec.yaml
2636 id : version
2737 run : |
You can’t perform that action at this time.
0 commit comments