Publish to pub.dev #18
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish to pub.dev | |
| on: | |
| workflow_dispatch: | |
| # Publish using custom workflow | |
| jobs: | |
| publish: | |
| permissions: | |
| id-token: write # Required for authentication using OIDC | |
| contents: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Setup Flutter SDK and automated pub.dev credentials | |
| - uses: flutter-actions/setup-flutter@v4 | |
| with: | |
| channel: stable | |
| version: 3.29.0 | |
| - uses: flutter-actions/setup-pubdev-credentials@v1 | |
| - name: Install dependencies | |
| run: flutter pub get | |
| - name: Publish - dry run | |
| run: dart pub publish --dry-run | |
| - name: Publish | |
| run: flutter pub publish --force |