add new version of SimpleRemoteConfig
#1
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: Build, Test and Deploy to Pub.dev | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Dart | |
uses: dart-lang/setup-dart@v1 | |
- name: Get dependencies | |
run: dart pub get | |
- name: Format | |
run: dart format --set-exit-if-changed . | |
- name: Analyze | |
run: dart analyze | |
- name: Test | |
run: dart test --coverage=coverage | |
# Check version in pubspec.yaml and create a new tag, if necessary and deploy to pub.dev | |
- name: Check version and deploy | |
run: | | |
VERSION=$(grep 'version: ' pubspec.yaml | sed 's/version: //') | |
git tag -a $VERSION -m "Version $VERSION" | |
git push origin $VERSION | |
dart pub publish --dry-run |