diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..e4bee2b5 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,28 @@ +name: Publish to pub.dev + +on: + release: + types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + + permissions: + id-token: write + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup Dart + uses: dart-lang/setup-dart@v1 + + - name: Install dependencies + run: dart pub get + + - name: Verify package + run: dart pub publish --dry-run + + - name: Publish package + run: dart pub publish --force \ No newline at end of file