chore: publish developer preview versions (#708) #13
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 supabase_flutter to pub.dev | |
on: | |
push: | |
tags: | |
- 'supabase_flutter-v[0-9]+.[0-9]+.[0-9]+*' | |
jobs: | |
publish: | |
name: Publish on pub.dev | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write # This is required for requesting the JWT | |
defaults: | |
run: | |
working-directory: packages/supabase_flutter | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
# This step adds the auth token for pub.dev | |
- name: Set up Dart | |
uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: stable | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
cache: true | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Publish - dry run | |
run: flutter pub publish --dry-run | |
# Publishing... | |
- name: Publish to pub.dev | |
run: flutter pub publish -f |