chore: release 0.0.4 #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: | |
- '[0-9]+.[0-9]+.[0-9]+*' # Tag must be the trigger, defined on pub.dev in the package settings | |
# https://dart.dev/tools/pub/automated-publishing#hardening-security-with-tag-protection-rules-on-github | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
environment: pub.dev # is configured in repo settings with secrets | |
permissions: | |
id-token: write # Required for authentication using OIDC | |
steps: | |
- name: Setup Flutter SDK | |
uses: flutter-actions/setup-flutter@v3 | |
with: | |
channel: stable | |
version: latest | |
cache: true | |
cache-sdk: true | |
cache-key: flutter-cache | |
- run: flutter pub get | |
- uses: flutter-actions/setup-pubdev-credentials@v1 | |
- run: flutter pub publish --force |