Skip to content

docs: Updated README.md #20

docs: Updated README.md

docs: Updated README.md #20

Workflow file for this run

name: Publish to pub.dev
on:
push:
branches:
- main
tags:
- "v[0-9]+.[0-9]+.[0-9]+*" # tag pattern on pub.dev: 'v'
# Publish using custom workflow
jobs:
dart_pub_publish:
permissions:
id-token: write # This is required for authentication using OIDC
runs-on: ubuntu-latest
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4
- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
- name: 🎯 Setup Dart
uses: dart-lang/setup-dart@v1
- name: 📦 Install Dependencies
run: dart pub get
- name: ✨ Check Formatting
run: dart format --line-length 80 --set-exit-if-changed lib test
- name: 🕵️ Analyze
run: flutter analyze lib test
- name: 📢 Publish
run: dart pub publish --force