File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Dry Run SDK Publish
2+
3+ on :
4+ push :
5+ branches :
6+ - ' release-test/**'
7+
8+ jobs :
9+ release :
10+ name : Dry-run release of ${{ matrix.package }}
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ package :
15+ - mindbox_platform_interface
16+ - mindbox_android
17+ - mindbox_ios
18+ - mindbox
19+
20+ steps :
21+ # 1. Клонируем нужную ветку
22+ - uses : actions/checkout@v4
23+ with :
24+ fetch-depth : 2
25+
26+ # 2. Извлекаем версию из pubspec.yaml
27+ - name : Extract version
28+ run : |
29+ cd ${{ matrix.package }}
30+ VERSION=$(awk '/^version:/ {print $2}' pubspec.yaml)
31+ echo "VERSION=$VERSION" >> $GITHUB_ENV
32+
33+ # 3. Dry run публикации в Pub (проверяет ваши PUB_CREDENTIALS)
34+ - name : Dry run pub publisher
35+ uses : sakebook/actions-flutter-pub-publisher@v1.3.1
36+ with :
37+ package_directory : ${{ matrix.package }}
38+ credential : ${{ secrets.PUB_CREDENTIALS }}
39+ flutter_package : true
40+ skip_test : true
41+ dry_run : true
42+
43+ # 4. Симуляция создания релиза (никакого реального API вызова)
44+ - name : Simulate release creation
45+ if : success()
46+ env :
47+ PACKAGE : ${{ matrix.package }}
48+ run : |
49+ echo "✅ Would create GitHub Release $PACKAGE v${VERSION}"
You can’t perform that action at this time.
0 commit comments