Skip to content

Commit 72fa502

Browse files
authored
Merge pull request #1 from mobitouchOS/0.2.0-beta.2
Updates CI/CD and package version for beta release
2 parents 6badc81 + d81e3f4 commit 72fa502

5 files changed

Lines changed: 76 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: PR Pipeline
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
validate:
10+
name: Validate package
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Flutter
18+
uses: subosito/flutter-action@v2
19+
with:
20+
channel: stable
21+
cache: true
22+
23+
- name: Install dependencies
24+
run: flutter pub get
25+
26+
- name: Verify formatting
27+
run: dart format --output=none --set-exit-if-changed .
28+
29+
- name: Analyze
30+
run: flutter analyze
31+
32+
# - name: Run tests
33+
# run: flutter test
34+
35+
- name: Pub publish dry run
36+
run: dart pub publish --dry-run

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish to pub.dev
2+
3+
on:
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+"
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
verify-tag-on-main:
13+
name: Verify tag commit is on main
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout full history
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Verify tagged commit belongs to main
23+
run: |
24+
git fetch origin main
25+
git merge-base --is-ancestor "$GITHUB_SHA" "origin/main" || {
26+
echo "Tag is not on main. Publishing is blocked."
27+
exit 1
28+
}
29+
30+
publish:
31+
needs: verify-tag-on-main
32+
permissions:
33+
id-token: write
34+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
## 0.2.0-beta.1 - 2026-02-13
1+
## 0.2.0-beta.2 - 2026-02-13
22

33
Reclassified `mt_audio` as a beta release while testing is ongoing.
44

55
### Changed
66

7-
- Updated package version to `0.2.0-beta.1`.
7+
- Updated package version to `0.2.0-beta.2`.
88
- Updated README wording from production-ready to beta.
9+
- Updated GitHub workflow branch references from `master` to `main`.
910

1011
### Breaking changes
1112

example/lib/providers/player_provider.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class PlayerProvider extends InheritedWidget {
1414

1515
/// Gets the player from the widget tree.
1616
static MtAudioPlayer of(BuildContext context) {
17-
final provider = context.dependOnInheritedWidgetOfExactType<PlayerProvider>();
17+
final provider = context
18+
.dependOnInheritedWidgetOfExactType<PlayerProvider>();
1819
assert(provider != null, 'No PlayerProvider found in context');
1920
return provider!.player;
2021
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: mt_audio
2-
version: 0.2.0-beta.1
2+
version: 0.2.0-beta.2
33
description: A beta, streams-based Flutter audio package with background playback, queue management, Android Auto, and Apple CarPlay support.
44
homepage: https://github.com/mobitouchOS/mt_audio
55
repository: https://github.com/mobitouchOS/mt_audio

0 commit comments

Comments
 (0)