From 495379f100228587698ddd399ad2135b3adee71b Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Sat, 16 Nov 2024 15:25:44 +0100 Subject: [PATCH] chore: add pub_publish.yaml Signed-off-by: Sahil Kumar --- .github/workflows/pub_publish.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/pub_publish.yaml diff --git a/.github/workflows/pub_publish.yaml b/.github/workflows/pub_publish.yaml new file mode 100644 index 0000000..ed8981a --- /dev/null +++ b/.github/workflows/pub_publish.yaml @@ -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 \ No newline at end of file