Publish plugin #30
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 plugin | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+*' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write # Required for authentication using OIDC | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Java JDK | |
uses: actions/[email protected] | |
with: | |
distribution: temurin | |
java-version: "17" | |
- name: Flutter action | |
uses: subosito/[email protected] | |
with: | |
channel: stable | |
- name: Flutter version | |
run: flutter --version | |
- name: Download pub dependencies | |
run: flutter pub get | |
- name: Upgrade pub dependencies | |
run: flutter pub upgrade | |
- name: Run analyzer | |
run: flutter analyze --fatal-infos | |
- name: Run tests | |
run: flutter test | |
- name: Check Publish Warnings | |
run: flutter pub publish --dry-run | |
- name: Publish to pub.dev | |
run: dart pub publish -f |