Skip to content

Publish to pub.dev

Publish to pub.dev #37

Workflow file for this run

name: Publish to pub.dev
on:
workflow_dispatch:
jobs:
test:
environment: Production
runs-on: ubuntu-latest
steps:
- name: Checkout mix repo
uses: actions/checkout@v2
- name: Run Tests
uses: ./.github/actions/test/
with:
token: ${{ secrets.GITHUB_TOKEN }}
publish:
needs: test
environment: Production
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: kuhnroyal/flutter-fvm-config-action@v2
id: fvm-config-action
with:
flavor: 'mincompat'
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
- name: Setup Melos
uses: bluefireteam/melos-action@v3
- name: 'Publish Package'
run: melos run publish --no-dry-run