8bd19bd4db
Bumps the gh-deps group with 1 update in the /.github/actions/dart_package directory: [codecov/codecov-action](https://github.com/codecov/codecov-action). Bumps the gh-deps group with 2 updates in the /.github/actions/flutter_package directory: [codecov/codecov-action](https://github.com/codecov/codecov-action) and [VeryGoodOpenSource/very_good_coverage](https://github.com/verygoodopensource/very_good_coverage). Bumps the gh-deps group with 2 updates in the /.github/actions/publish_flutter_package directory: [actions/checkout](https://github.com/actions/checkout) and [actions/github-script](https://github.com/actions/github-script). Bumps the gh-deps group with 1 update in the /.github/actions/rust_crate directory: [codecov/codecov-action](https://github.com/codecov/codecov-action). Updates `codecov/codecov-action` from 3 to 6 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v3...v6) Updates `codecov/codecov-action` from 3 to 6 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v3...v6) Updates `VeryGoodOpenSource/very_good_coverage` from 2 to 3 - [Release notes](https://github.com/verygoodopensource/very_good_coverage/releases) - [Changelog](https://github.com/VeryGoodOpenSource/very_good_coverage/blob/main/CHANGELOG.md) - [Commits](https://github.com/verygoodopensource/very_good_coverage/compare/v2...v3) Updates `actions/checkout` from 4 to 6 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v6) Updates `actions/github-script` from 6 to 8 - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v6...v8) Updates `codecov/codecov-action` from 3 to 6 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v3...v6) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gh-deps - dependency-name: codecov/codecov-action dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gh-deps - dependency-name: VeryGoodOpenSource/very_good_coverage dependency-version: '3' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gh-deps - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gh-deps - dependency-name: actions/github-script dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gh-deps - dependency-name: codecov/codecov-action dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gh-deps ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
name: Publish Flutter package to pub.dev
|
|
description: Publish your Flutter package to pub.dev
|
|
|
|
inputs:
|
|
working-directory:
|
|
description: directory with-in the repository where the package is located (if not in the repository root)
|
|
required: false
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: 📚 Git Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: 🐦 Setup Flutter
|
|
uses: subosito/flutter-action@v2
|
|
|
|
- name: 🪪 Get Id Token
|
|
uses: actions/github-script@v8
|
|
with:
|
|
script: |
|
|
const pub_token = await core.getIDToken('https://pub.dev')
|
|
core.exportVariable('PUB_TOKEN', pub_token)
|
|
|
|
- name: 📢 Authenticate
|
|
shell: ${{ inputs.shell }}
|
|
run: flutter pub pub token add https://pub.dev --env-var PUB_TOKEN
|
|
|
|
- name: 📦 Install dependencies
|
|
shell: ${{ inputs.shell }}
|
|
run: flutter pub get
|
|
working-directory: ${{ inputs.working-directory }}
|
|
|
|
- name: 🌵 Dry Run
|
|
shell: ${{ inputs.shell }}
|
|
run: flutter pub publish --dry-run
|
|
working-directory: ${{ inputs.working-directory }}
|
|
|
|
- name: 📢 Publish
|
|
shell: ${{ inputs.shell }}
|
|
run: flutter pub publish -f
|
|
working-directory: ${{ inputs.working-directory }}
|