add automated publishing #2
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: | ||
- 'v[0-9]+.[0-9]+.[0-9]+*' | ||
jobs: | ||
steps: | ||
- name: Install Flutter | ||
run: | | ||
git clone https://github.com/flutter/flutter.git -b stable --depth 1 | ||
export PATH="$PATH:`pwd`/flutter/bin" | ||
flutter doctor | ||
publish: | ||
permissions: | ||
id-token: write # Required for authentication using OIDC | ||
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 | ||
# with: | ||
# working-directory: path/to/package/within/repository |