Release v0.2.0 #1
Workflow file for this run
This file contains hidden or 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 to pub.dev | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| publish: | |
| name: Publish package | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: '3.x' | |
| channel: stable | |
| - name: Install dependencies | |
| run: flutter pub get | |
| - name: Verify package | |
| run: flutter pub publish --dry-run | |
| - name: Publish to pub.dev | |
| env: | |
| PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }} | |
| run: | | |
| mkdir -p ~/.config/dart | |
| echo "$PUB_CREDENTIALS" > ~/.config/dart/pub-credentials.json | |
| flutter pub publish --force |