Skip to content

Publish to pub.dev

Publish to pub.dev #2

Workflow file for this run

name: Publish to pub.dev
on:
workflow_dispatch:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Dart
uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: dart pub get
- name: Verify package
run: dart pub publish --dry-run
- name: Publish package
run: dart pub publish --force