Skip to content

Commit 312b3d2

Browse files
authored
chore: correct flutter tag for snap, test snap in CI, release 1.5.3 (#847)
1 parent 93fd7ab commit 312b3d2

File tree

6 files changed

+58
-38
lines changed

6 files changed

+58
-38
lines changed

.github/workflows/cd.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build and Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
env:
9+
FLUTTER_VERSION: '3.24.x'
10+
11+
jobs:
12+
build_and_publish:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Check version in pubspec.yaml
17+
id: check
18+
run: |
19+
changed=$(git diff --unified=0 --merge-base HEAD HEAD^ -- 'pubspec.yaml' | grep -n '^@@' | cut -d':' -f1)
20+
echo $changed >> $GITHUB_OUTPUT
21+
echo "lines changed: $changed"
22+
echo "Head branch: ${GITHUB_HEAD_REF}"
23+
echo "Base branch: ${GITHUB_BASE_REF}"
24+
- uses: actions/checkout@v4
25+
- uses: subosito/flutter-action@v2
26+
with:
27+
channel: 'stable'
28+
flutter-version: ${{env.FLUTTER_VERSION}}
29+
- run: sudo apt update
30+
- run: sudo apt install -y clang cmake curl libgtk-3-dev ninja-build pkg-config unzip libunwind-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libmpv-dev
31+
- run: flutter pub get
32+
- uses: snapcore/action-build@v1
33+
if: steps.check.outputs.changed == '5'
34+
id: build
35+
# Disabled until linux arm runners are available
36+
# - uses: snapcore/action-publish@v1
37+
# if: steps.build.outcome == 'success'
38+
# env:
39+
# SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
40+
# with:
41+
# snap: ${{ steps.build.outputs.snap }}
42+
# release: edge

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ jobs:
5151
- run: sudo apt update
5252
- run: sudo apt install -y clang cmake curl libgtk-3-dev ninja-build pkg-config unzip libunwind-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libmpv-dev
5353
- run: flutter pub get
54-
- run: flutter build linux -v
54+
- run: flutter build linux -v

.github/workflows/snap.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

lib/patch_notes/patch_notes.dart

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,18 @@ const kPatchNotes20240728 = 'Hello MusicPod Users, this big update includes\n'
238238
'\n* a lot of bugfixes'
239239
'\n';
240240

241-
const kRecentPatchNotesDisposed = kPatchNotes20240728disposed;
242-
const kRecentPatchNotesTitle = kPatchNotesTitle20240728;
243-
const kRecentPatchNotes = kPatchNotes20240728;
241+
// 2024 08 15
242+
const kPatchNotes20240815disposed = 'patchNotes20240815disposed';
243+
const kPatchNotesTitle20240815 = 'Patch notes: 2024-08-15';
244+
const kPatchNotes20240815 = 'Hello MusicPod Users, this update includes\n'
245+
'\n* search improvements'
246+
'\n* new podcast options: reorder, sleep timer and reset progress'
247+
'\n* a lot under the hood changes'
248+
'\n* bugfixes'
249+
'\n';
250+
251+
const kRecentPatchNotesDisposed = kPatchNotes20240815disposed;
252+
const kRecentPatchNotesTitle = kPatchNotesTitle20240815;
253+
const kRecentPatchNotes = kPatchNotes20240815;
244254

245255
const kPatchNotesDisposed = 'kPatchNotesDisposed';

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: musicpod
22
description: Ubuntu music, radio and podcast player.
3-
version: 1.5.2
3+
version: 1.5.3
44

55
publish_to: "none"
66

snap/snapcraft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ parts:
6161

6262
flutter-git:
6363
source: https://github.com/flutter/flutter.git
64-
source-tag: 3.19.5
64+
source-tag: 3.24.0
6565
source-depth: 1
6666
plugin: nil
6767
override-build: |

0 commit comments

Comments
 (0)