Skip to content

Commit

Permalink
chore: Update publish to work with flutter instead of dart. (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinyoklion authored Apr 26, 2023
1 parent 8c1b6ba commit 4647f2e
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
# .github/workflows/publish.yml
name: Publish to pub.dev

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

# Publish using custom workflow
jobs:
publish:
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
permissions:
id-token: write # This is required for authentication using OIDC
runs-on: ubuntu-latest
steps:
- 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:
flutter-version: '3.3.7'
channel: 'stable'
- name: Install dependencies
run: flutter pub get
- name: Publish
run: flutter pub publish --force

0 comments on commit 4647f2e

Please sign in to comment.