Skip to content

Commit

Permalink
chore: update github action for pub publishing (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomarra authored Oct 22, 2024
1 parent 2ad858b commit f4eaf5a
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/pub_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,23 @@ name: pub_publish
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
- "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
runs-on: ubuntu-latest
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4
- name: 🎯 Setup Dart
uses: dart-lang/setup-dart@v1
- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2
- name: 📦 Install Dependencies
run: flutter pub get
- name: 🌵 Dry Run
run: dart pub publish --dry-run
- name: 📢 Publish
run: dart pub publish --force

0 comments on commit f4eaf5a

Please sign in to comment.