Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: correct flutter tag for snap, test snap in CI, release 1.5.3 #847

Merged
merged 27 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build and Publish

on:
push:
branches:
- main

env:
FLUTTER_VERSION: '3.24.x'

jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check version in pubspec.yaml
id: check
run: |
changed=$(git diff --unified=0 --merge-base HEAD HEAD^ -- 'pubspec.yaml' | grep -n '^@@' | cut -d':' -f1)
echo $changed >> $GITHUB_OUTPUT
echo "lines changed: $changed"
echo "Head branch: ${GITHUB_HEAD_REF}"
echo "Base branch: ${GITHUB_BASE_REF}"
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: ${{env.FLUTTER_VERSION}}
- run: sudo apt update
- 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
- run: flutter pub get
- uses: snapcore/action-build@v1
if: steps.check.outputs.changed == '5'
id: build
# Disabled until linux arm runners are available
# - uses: snapcore/action-publish@v1
# if: steps.build.outcome == 'success'
# env:
# SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
# with:
# snap: ${{ steps.build.outputs.snap }}
# release: edge
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ jobs:
- run: sudo apt update
- 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
- run: flutter pub get
- run: flutter build linux -v
- run: flutter build linux -v
32 changes: 0 additions & 32 deletions .github/workflows/snap.yaml

This file was deleted.

16 changes: 13 additions & 3 deletions lib/patch_notes/patch_notes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,18 @@ const kPatchNotes20240728 = 'Hello MusicPod Users, this big update includes\n'
'\n* a lot of bugfixes'
'\n';

const kRecentPatchNotesDisposed = kPatchNotes20240728disposed;
const kRecentPatchNotesTitle = kPatchNotesTitle20240728;
const kRecentPatchNotes = kPatchNotes20240728;
// 2024 08 15
const kPatchNotes20240815disposed = 'patchNotes20240815disposed';
const kPatchNotesTitle20240815 = 'Patch notes: 2024-08-15';
const kPatchNotes20240815 = 'Hello MusicPod Users, this update includes\n'
'\n* search improvements'
'\n* new podcast options: reorder, sleep timer and reset progress'
'\n* a lot under the hood changes'
'\n* bugfixes'
'\n';

const kRecentPatchNotesDisposed = kPatchNotes20240815disposed;
const kRecentPatchNotesTitle = kPatchNotesTitle20240815;
const kRecentPatchNotes = kPatchNotes20240815;

const kPatchNotesDisposed = 'kPatchNotesDisposed';
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: musicpod
description: Ubuntu music, radio and podcast player.
version: 1.5.2
version: 1.5.3

publish_to: "none"

Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ parts:

flutter-git:
source: https://github.com/flutter/flutter.git
source-tag: 3.19.5
source-tag: 3.24.0
source-depth: 1
plugin: nil
override-build: |
Expand Down