This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
chore: Release 0.3.0 #18
Workflow file for this run
This file contains 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: | |
push: | |
tags: | |
# Must align with the tag-pattern configured on pub.dev. | |
- 'url_strategy-v[0-9]+.[0-9]+.[0-9]+*' | |
jobs: | |
pana: | |
timeout-minutes: 9 | |
runs-on: ubuntu-latest | |
name: Configuration of ${{ matrix.package }} | |
strategy: | |
matrix: | |
package: | |
- 'url_strategy' | |
fail-fast: false | |
steps: | |
- uses: actions/[email protected] | |
- uses: axel-op/dart-package-analyzer@v3 | |
with: | |
relativePath: ${{ matrix.package }} | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
publish: | |
needs: pana | |
timeout-minutes: 4 | |
runs-on: ubuntu-latest | |
name: Publishing of ${{ matrix.package }} | |
permissions: | |
id-token: write # Allows to publish to pub.dev without personal credentials | |
strategy: | |
matrix: | |
package: | |
- 'url_strategy' | |
fail-fast: false | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 2 | |
- uses: dart-lang/setup-dart@v1 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- run: flutter pub get | |
working-directory: ${{ matrix.package }} | |
- run: flutter pub publish --dry-run | |
working-directory: ${{ matrix.package }} | |
- run: flutter pub publish --force | |
working-directory: ${{ matrix.package }} |