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