Skip to content

🔖 (bump to v1.2.0) #3

🔖 (bump to v1.2.0)

🔖 (bump to v1.2.0) #3

Workflow file for this run

# A CI configuration to auto-publish pub packages.
name: Publish to pub.dev on tag
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
jobs:
publish:
runs-on: ubuntu-latest
# Required for publishing to pub.dev
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- id: dotenv
uses: falti/dotenv-action@v1.1.4
with:
path: .github/workflows/.env
- uses: subosito/flutter-action@v2.16.0
with:
flutter-version: ${{ steps.dotenv.outputs.flutter_version }}
channel: "stable"
cache: true
cache-key: flutter-macos-${{ steps.dotenv.outputs.flutter_version }}
cache-path: ${{ runner.tool_cache }}/flutter-${{ steps.dotenv.outputs.flutter_version }}
- name: Install Dependencies
run: flutter pub get
- name: Publish to pub.dev
run: flutter pub publish --force