Skip to content

Commit e8d057a

Browse files
authored
feat: fix CI publish step: replace deprecated pub action with dart pub publish (#77)
1 parent 9883e70 commit e8d057a

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/dart.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,10 @@ jobs:
6969
env:
7070
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7171

72-
- name: Publish to pub
73-
run: dart pub publish --dry-run
74-
75-
- uses: sakebook/actions-flutter-pub-publisher@v1.3.1
76-
with:
77-
package_directory: ${{ matrix.package }}
78-
credential: ${{ secrets.PUB_CREDENTIALS }}
79-
flutter_package: false
80-
skip_test: true
72+
- name: Setup Pub Credentials
73+
run: |
74+
mkdir -p $HOME/.config/dart
75+
echo '${{ secrets.PUB_CREDENTIALS }}' > $HOME/.config/dart/pub-credentials.json
76+
77+
- name: Publish to pub.dev
78+
run: dart pub publish --force

0 commit comments

Comments
 (0)