Update dart.yml #111
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 | |
on: | |
pull_request: | |
branches: [ master ] | |
types: [opened, synchronize, reopened, labeled, unlabeled] | |
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: Install Dart | |
uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: stable | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
- name: Publish to pub.dev | |
run: flutter pub publish --force |