From 33f05a100509245f7645f5a67ac2d48002b4adb5 Mon Sep 17 00:00:00 2001 From: Tom Arra Date: Wed, 23 Oct 2024 08:31:50 -0500 Subject: [PATCH] chore: add github action for pub publish (#117) --- .github/workflows/pub_publish.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..046dc43 --- /dev/null +++ b/.github/workflows/pub_publish.yaml @@ -0,0 +1,23 @@ +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: 📦 Install Dependencies + run: dart pub get + - name: 🌵 Dry Run + run: dart pub publish --dry-run + - name: 📢 Publish + run: dart pub publish --force