Skip to content

Fixed publishing automation #4

Fixed publishing automation

Fixed publishing automation #4

Workflow file for this run

name: Publish to pub.dev
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v{{version}}'
# Publish using the reusable workflow from dart-lang.
jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.22.2'
- name: Install dependencies
run: flutter pub get
- name: Analyze
run: flutter analyze
- name: Publish
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1