From 376094661a6e5bc91c9df94993b13e56b979ed88 Mon Sep 17 00:00:00 2001 From: Prajwol Pradhan Date: Thu, 11 Jun 2026 18:06:18 +0545 Subject: [PATCH] chore(ci): revert back to using static credentials for pub.dev --- .github/workflows/build-deploy.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index f7a8fde..471e756 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -60,10 +60,8 @@ jobs: if: ${{ inputs.publish }} runs-on: ubuntu-24.04 timeout-minutes: 20 - environment: "pub.dev" permissions: contents: write # create tag + GitHub Release - id-token: write # pub.dev OIDC publishing steps: - name: Harden runner uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 @@ -86,7 +84,12 @@ jobs: run: flutter pub get - name: Publish to pub.dev 🚀 - run: dart pub publish --force + env: + PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }} + run: | + mkdir -p "$HOME/.config/dart" + printf '%s' "$PUB_CREDENTIALS" | base64 --decode > "$HOME/.config/dart/pub-credentials.json" + dart pub publish --force - name: Generate changelog id: changelog