-
Notifications
You must be signed in to change notification settings - Fork 5
/
.rultor.yml
32 lines (32 loc) · 989 Bytes
/
.rultor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
docker:
image: ghcr.io/cirruslabs/flutter:stable
as_root: true
architect:
- rafamizes
assets:
credentials.json: rafamizes/secret#assets/publishing/flutter/credentials.json
merge:
rebase: true
script: |
flutter clean
flutter pub get
flutter test --no-pub
flutter pub publish --dry-run
release:
# updates pubspec.yaml's version attribute to $tag;
# in CHANGELOG, places section '[$tag] - YYYY-mm-dd' under [Unreleaded];
# commits the $tag version and publishes to pub.dev;
# Rultor tags the lastest commit as $tag and push the new tag to the
# repository.
script: |-
sed -i "s/^\(version:\).*/\1 $tag/" pubspec.yaml
sed -i "/\[[Uu]nreleased\]/a\\\n## [$tag] - $(date '+%F')" CHANGELOG.md
mkdir -p ~/.pub-cache
mv ../credentials.json ~/.pub-cache/credentials.json
flutter clean
flutter pub get
flutter pub publish -f
git commit -am "version $tag"
git checkout master
git merge __rultor
git checkout __rultor