flutter_image_compress v2.3.0 #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
release: | |
types: [ published ] | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- run: flutter --version | |
- run: flutter pub get | |
- run: flutter pub global activate melos | |
- run: melos bootstrap | |
- name: Try to publish | |
run: melos publish --yes --dry-run | |
- name: Write token to local | |
run: | | |
mkdir -p ~/.config/dart | |
echo ${{ secrets.CREDENTIAL_JSON }} > ~/.config/dart/pub-credentials.json | |
- name: Publish to pub.dev | |
run: melos publish --yes --no-dry-run |