Skip to content

Commit

Permalink
ci: add pub publish workflow (#13)
Browse files Browse the repository at this point in the history
Signed-off-by: Sahil Kumar <[email protected]>
  • Loading branch information
xsahil03x authored Dec 1, 2024
1 parent 322ae5f commit ef24999
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 ef24999

Please sign in to comment.