Skip to content

added setup Flutter to github action #4

added setup Flutter to github action

added setup Flutter to github action #4

Workflow file for this run

name: Publish to pub.dev
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
publish:
name: 'Publish to pub.dev'
permissions:
id-token: write # This is required for requesting the JWT
runs-on: ubuntu-latest
steps:
# Checkout repository
- uses: actions/checkout@v3
# Setup Flutter SDK
- name: Setup Flutter
uses: subosito/flutter-action@v2
# Setup Dart SDK with JWT token
- uses: dart-lang/setup-dart@main
# Minimal package setup.
- name: Install dependencies
run: flutter pub get
# Publishing...
- name: Publish to pub.dev
run: dart pub publish -f