From 03af38b480542407177ceaede36f0005e71338e5 Mon Sep 17 00:00:00 2001 From: droplet Date: Mon, 29 May 2023 15:03:33 +0800 Subject: [PATCH] Update publish.yml --- .github/workflows/publish.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6ce17d5..7ba4020 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,7 @@ name: publish on: + workflow_dispatch: release: types: [published] @@ -24,11 +25,5 @@ jobs: echo $CREDENTIALS > $PUB_CACHE/credentials.json - run: flutter --version - run: flutter pub get - - run: flutter format --dry-run --set-exit-if-changed . + - run: dart format --set-exit-if-changed . - run: echo "y" | flutter pub publish - - name: Run pub.dev/update-credentials@shell - env: - UPDATE_SECRETS_PAT_TOKEN: ${{ secrets.UPDATE_SECRETS_PAT_TOKEN }} - run: | - gh auth login --with-token <<< $UPDATE_SECRETS_PAT_TOKEN - gh secret set CREDENTIALS_JSON < $PUB_CACHE/credentials.json