Skip to content

try using pubdev creds action #10

try using pubdev creds action

try using pubdev creds action #10

Workflow file for this run

name: Publish to pub.dev
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
branches:
- master
jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
# uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
name: 'Publish to pub.dev'
runs-on: 'macos-latest-large'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
architecture: x64
flutter-version: 3.22.2
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
architecture: x64
flutter-version: 3.22.2
- name: Git Identity
run: |
git config --global user.name 'frontegg'
git config --global user.email '[email protected]'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: flutter-actions/[email protected]
- name: Install Dependencies
run: flutter pub get
- name: Flutter Publish dry run
run: flutter pub publish --force