Skip to content

Commit

Permalink
Update pipeline to use Flutter
Browse files Browse the repository at this point in the history
  • Loading branch information
cadivus committed Oct 19, 2024
1 parent 138fa86 commit fbfae11
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,25 @@ name: Publish to pub.dev
on:
push:
tags:
# must align with the tag-pattern configured on pub.dev, often just replace
# with [0-9]+.[0-9]+.[0-9]+*
- 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v'
# If you prefer tags like '1.2.3', without the 'v' prefix, then use:
# - '[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: ''
# If your repository contains multiple packages consider a pattern like:
# - 'my_package_name-v[0-9]+.[0-9]+.[0-9]+*'
- 'v[0-9]+.[0-9]+.[0-9]+*' # Adjust according to your versioning pattern

# Publish using the reusable workflow from dart-lang.
jobs:
setup:
name: Setup Flutter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 'stable'

- name: Install dependencies
run: flutter pub get

publish:
needs: setup
permissions:
id-token: write # Required for authentication using OIDC
id-token: write
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
# with:
# working-directory: path/to/package/within/repository

0 comments on commit fbfae11

Please sign in to comment.