| # A CI configuration to auto-publish pub packages. | |
| name: Publish | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| push: | |
| # TODO: Enable autopublishing for these when Flutter SDK is supported. | |
| tags: | |
| - '[A-z0-9]+-v[0-9]+.[0-9]+.[0-9]+' | |
| - '[A-z0-9]+-v[0-9]+.[0-9]+.[0-9]+-[A-z0-9]+' | |
| - '!ffigen-v**' | |
| - '!jni-v**' | |
| - '!jnigen-v**' | |
| - '!objective_c-v**' | |
| - '!prebuilt_assets_example-v**' | |
| jobs: | |
| publish: | |
| if: ${{ github.repository_owner == 'dart-lang' }} | |
| uses: dart-lang/ecosystem/.github/workflows/publish.yaml@fc3dd9a17a8e18b3b4aa5abac8a0f4a679fe2d57 | |
| permissions: | |
| contents: read | |
| id-token: write # Required for authentication using OIDC | |
| pull-requests: write # Required for writing the pull request note | |
| with: | |
| write-comments: false | |
| sdk: dev # use beta/stable after 3.3.0 | |
| ignore-packages: pkgs/objective_c,pkgs/ffigen,pkgs/jni,pkgs/jnigen,pkgs/hooks/example/build/prebuilt_assets_example |