From a062d35a5fed5dc44723e11ca048326b1b846c70 Mon Sep 17 00:00:00 2001 From: Sreelal TS Date: Fri, 20 Dec 2024 20:30:54 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Deployment=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/publish.yml 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