From 6537845d0f05e267e942cb0f8a21f512a3452dc9 Mon Sep 17 00:00:00 2001 From: dhwanish-3 <108540722+dhwanish-3@users.noreply.github.com> Date: Sat, 27 Jan 2024 18:34:53 +0530 Subject: [PATCH] Actions file changed to install flutter pub get --- .github/workflows/publish.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 02c2768..9845385 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,6 +16,17 @@ jobs: publish: permissions: id-token: write # Required for authentication using OIDC - uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 - # with: - # working-directory: path/to/package/within/repository \ No newline at end of file + runs-on: ubuntu-latest + steps: + # Checkout repository + - uses: actions/checkout@v4 + # Setup Dart SDK with JWT token + - uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d + # Minimal package setup and dry run checks. + - name: Install dependencies + run: flutter pub get + - name: Publish - dry run + run: dart pub publish --dry-run + # Publishing... + - name: Publish to pub.dev + run: dart pub publish -f \ No newline at end of file