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