flutter_image_compress-v2.1.0 #11
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: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Install flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.7.7' | |
channel: 'stable' | |
- run: flutter --version | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Install melos | |
run: flutter pub global activate melos | |
- name: Get packages | |
run: | | |
melos bootstrap | |
melos run get | |
- 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 | |