Skip to content

Commit 8ddd628

Browse files
committed
chore: updated publish_pub_dev job
1 parent 54b55ec commit 8ddd628

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/publish-draft.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,19 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v4
2626

27+
- name: Install Flutter
28+
uses: subosito/flutter-action@v2
29+
with:
30+
channel: stable
31+
- run: flutter doctor -v
32+
2733
- name: Append GITHUB_RUN_NUMBER to version
2834
run: ./update_version.sh
2935

3036
- name: Publish package
31-
uses: sakebook/[email protected]
32-
with:
33-
credential: ${{ secrets.CREDENTIAL_JSON }}
34-
flutter_package: true
35-
skip_test: true
36-
dry_run: true
37+
run: |
38+
echo ${{ secrets.CREDENTIAL_JSON }} > ~/.config/dart/pub-credentials.json
39+
flutter pub publish --dry-run
3740
3841
- name: Git commit the updated pubspec.yaml
3942
run: |

0 commit comments

Comments
 (0)