Skip to content

Commit

Permalink
chore: add github publish workflow (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomarra authored Oct 22, 2024
1 parent 28a0eb9 commit 336d95c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pub_publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: pub_publish

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"

jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
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 336d95c

Please sign in to comment.