Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish release to pub.dev | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+*' | |
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 | |
- 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 |