Skip to content

Commit

Permalink
Add publish GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
tp committed Feb 6, 2024
1 parent e9b798d commit 2f32725
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish to pub.dev

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*" # tag-pattern on pub.dev: 'v'

jobs:
publish:
name: Publish to pub.dev
runs-on: ubuntu-latest

permissions:
id-token: write

steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Install Dart
uses: dart-lang/setup-dart@v1
with:
sdk: stable

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.16.3

- name: Publish to pub.dev
run: flutter pub publish --force

0 comments on commit 2f32725

Please sign in to comment.