mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
chore: bump next release version and add CHANGELOG
cd: release GHA uses git tags and runs on publish
This commit is contained in:
parent
91048f9b15
commit
a3b64d3ebe
103
.github/workflows/spotube-release.yml
vendored
103
.github/workflows/spotube-release.yml
vendored
@ -1,10 +1,8 @@
|
|||||||
name: Spotube Release
|
name: Spotube Release
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
release:
|
||||||
inputs:
|
types:
|
||||||
tag:
|
- published
|
||||||
description: The tag to release
|
|
||||||
required: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish_chocolatey:
|
publish_chocolatey:
|
||||||
@ -16,18 +14,17 @@ jobs:
|
|||||||
repository: KRTirtho/flutter_distributor
|
repository: KRTirtho/flutter_distributor
|
||||||
ref: deb-implementation
|
ref: deb-implementation
|
||||||
path: build/flutter_distributor
|
path: build/flutter_distributor
|
||||||
# - name: Get latest tag
|
- name: Get latest tag
|
||||||
# id: tag
|
id: tag
|
||||||
# uses: dawidd6/action-get-tag@v1
|
uses: dawidd6/action-get-tag@v1
|
||||||
# with:
|
with:
|
||||||
# # Optionally strip `v` prefix
|
strip_v: true
|
||||||
# strip_v: true
|
|
||||||
# Replace Version in files
|
# Replace Version in files
|
||||||
- run: |
|
- run: |
|
||||||
choco install sed make -y
|
choco install sed make -y
|
||||||
sed -i "s/%{{SPOTUBE_VERSION}}%/${{ github.event.inputs.tag }}/" windows/runner/Runner.rc
|
sed -i "s/%{{SPOTUBE_VERSION}}%/${{ steps.tag.outputs.tag }}/" windows/runner/Runner.rc
|
||||||
sed -i "s/%{{SPOTUBE_VERSION}}%/${{ github.event.inputs.tag }}/" choco-struct/tools/VERIFICATION.txt
|
sed -i "s/%{{SPOTUBE_VERSION}}%/${{ steps.tag.outputs.tag }}/" choco-struct/tools/VERIFICATION.txt
|
||||||
sed -i "s/%{{SPOTUBE_VERSION}}%/${{ github.event.inputs.tag }}/" choco-struct/spotube.nuspec
|
sed -i "s/%{{SPOTUBE_VERSION}}%/${{ steps.tag.outputs.tag }}/" choco-struct/spotube.nuspec
|
||||||
|
|
||||||
# Build Windows Executable
|
# Build Windows Executable
|
||||||
- uses: subosito/flutter-action@v2.2.0
|
- uses: subosito/flutter-action@v2.2.0
|
||||||
@ -67,11 +64,11 @@ jobs:
|
|||||||
runs-on: macos-11
|
runs-on: macos-11
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
# - name: Get latest tag
|
- name: Get latest tag
|
||||||
# uses: dawidd6/action-get-tag@v1
|
uses: dawidd6/action-get-tag@v1
|
||||||
# id: tag
|
id: tag
|
||||||
# with:
|
with:
|
||||||
# strip_v: true
|
strip_v: true
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
cache: true
|
cache: true
|
||||||
@ -82,23 +79,23 @@ jobs:
|
|||||||
- run: du -sh build/macos/Build/Products/Release/spotube.app
|
- run: du -sh build/macos/Build/Products/Release/spotube.app
|
||||||
- run: npm install -g appdmg
|
- run: npm install -g appdmg
|
||||||
# using a versioned path for compatibility in gensums
|
# using a versioned path for compatibility in gensums
|
||||||
- run: mkdir -p build/${{ github.event.inputs.tag }}
|
- run: mkdir -p build/${{ steps.tag.outputs.tag }}
|
||||||
- run: appdmg appdmg.json build/${{ github.event.inputs.tag }}/Spotube-macos-x86_64.dmg
|
- run: appdmg appdmg.json build/${{ steps.tag.outputs.tag }}/Spotube-macos-x86_64.dmg
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Spotube-Macos-Bundle
|
name: Spotube-Macos-Bundle
|
||||||
path: |
|
path: |
|
||||||
build/${{ github.event.inputs.tag }}/Spotube-macos-x86_64.dmg
|
build/${{ steps.tag.outputs.tag }}/Spotube-macos-x86_64.dmg
|
||||||
|
|
||||||
publish_linux:
|
publish_linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
# - name: Get latest tag
|
- name: Get latest tag
|
||||||
# id: tag
|
id: tag
|
||||||
# uses: dawidd6/action-get-tag@v1
|
uses: dawidd6/action-get-tag@v1
|
||||||
# with:
|
with:
|
||||||
# strip_v: true
|
strip_v: true
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
cache: true
|
cache: true
|
||||||
@ -114,7 +111,7 @@ jobs:
|
|||||||
mv appimage-builder-x86_64.AppImage /usr/local/bin/appimage-builder
|
mv appimage-builder-x86_64.AppImage /usr/local/bin/appimage-builder
|
||||||
# replacing & adding new release version with older version
|
# replacing & adding new release version with older version
|
||||||
- run: |
|
- run: |
|
||||||
sed -i 's|%{{APPDATA_RELEASE}}%|<release version="${{ github.event.inputs.tag }}" date="${{ steps.date.outputs.date }}" />|' linux/com.github.KRTirtho.Spotube.appdata.xml
|
sed -i 's|%{{APPDATA_RELEASE}}%|<release version="${{ steps.tag.outputs.tag }}" date="${{ steps.date.outputs.date }}" />|' linux/com.github.KRTirtho.Spotube.appdata.xml
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
flutter config --enable-linux-desktop
|
flutter config --enable-linux-desktop
|
||||||
@ -136,11 +133,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
# - name: Get latest tag
|
- name: Get latest tag
|
||||||
# id: tag
|
id: tag
|
||||||
# uses: dawidd6/action-get-tag@v1
|
uses: dawidd6/action-get-tag@v1
|
||||||
# with:
|
with:
|
||||||
# strip_v: true
|
strip_v: true
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
cache: true
|
cache: true
|
||||||
@ -187,11 +184,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: Spotube-Android-Bundle
|
name: Spotube-Android-Bundle
|
||||||
path: ./Spotube-Android-Bundle
|
path: ./Spotube-Android-Bundle
|
||||||
# - name: Get latest tag
|
- name: Get latest tag
|
||||||
# id: tag
|
id: tag
|
||||||
# uses: dawidd6/action-get-tag@v1
|
uses: dawidd6/action-get-tag@v1
|
||||||
# with:
|
with:
|
||||||
# strip_v: true
|
strip_v: true
|
||||||
- run: sudo apt-get install tree -y
|
- run: sudo apt-get install tree -y
|
||||||
# generating checksums for all the binary
|
# generating checksums for all the binary
|
||||||
- run: |
|
- run: |
|
||||||
@ -209,7 +206,7 @@ jobs:
|
|||||||
- uses: ncipollo/release-action@v1
|
- uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
tag: v${{ github.event.inputs.tag }}
|
tag: v${{ steps.tag.outputs.tag }}
|
||||||
omitBodyDuringUpdate: true
|
omitBodyDuringUpdate: true
|
||||||
omitNameDuringUpdate: true
|
omitNameDuringUpdate: true
|
||||||
omitPrereleaseDuringUpdate: true
|
omitPrereleaseDuringUpdate: true
|
||||||
@ -236,17 +233,17 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: spotube
|
path: spotube
|
||||||
# - name: Get latest tag
|
- name: Get latest tag
|
||||||
# id: tag
|
id: tag
|
||||||
# uses: dawidd6/action-get-tag@v1
|
uses: dawidd6/action-get-tag@v1
|
||||||
# with:
|
with:
|
||||||
# strip_v: true
|
strip_v: true
|
||||||
- run: |
|
- run: |
|
||||||
python3 spotube/scripts/update_flathub_version.py ${{ github.event.inputs.tag }}
|
python3 spotube/scripts/update_flathub_version.py ${{ steps.tag.outputs.tag }}
|
||||||
rm -rf spotube
|
rm -rf spotube
|
||||||
- uses: EndBug/add-and-commit@v9
|
- uses: EndBug/add-and-commit@v9
|
||||||
with:
|
with:
|
||||||
message: v${{ github.event.inputs.tag }} Update
|
message: v${{ steps.tag.outputs.tag }} Update
|
||||||
push: origin master
|
push: origin master
|
||||||
|
|
||||||
publish_aur:
|
publish_aur:
|
||||||
@ -254,17 +251,17 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
# - name: Get latest tag
|
- name: Get latest tag
|
||||||
# id: tag
|
id: tag
|
||||||
# uses: dawidd6/action-get-tag@v1
|
uses: dawidd6/action-get-tag@v1
|
||||||
# with:
|
with:
|
||||||
# strip_v: true
|
strip_v: true
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Spotube-Linux-Bundle
|
name: Spotube-Linux-Bundle
|
||||||
path: ./Spotube-Linux-Bundle
|
path: ./Spotube-Linux-Bundle
|
||||||
- run: |
|
- run: |
|
||||||
sed -i "s/%{{SPOTUBE_VERSION}}%/${{ github.event.inputs.tag }}/" aur-struct/PKGBUILD
|
sed -i "s/%{{SPOTUBE_VERSION}}%/${{ steps.tag.outputs.tag }}/" aur-struct/PKGBUILD
|
||||||
sed -i "s/%{{PKGREL}}%/1/" aur-struct/PKGBUILD
|
sed -i "s/%{{PKGREL}}%/1/" aur-struct/PKGBUILD
|
||||||
sed -i "s/%{{LINUX_MD5}}%/`md5sum Spotube-Linux-Bundle/Spotube-linux-x86_64.tar.xz | awk '{print $1}'`/" aur-struct/PKGBUILD
|
sed -i "s/%{{LINUX_MD5}}%/`md5sum Spotube-Linux-Bundle/Spotube-linux-x86_64.tar.xz | awk '{print $1}'`/" aur-struct/PKGBUILD
|
||||||
- uses: KSXGitHub/github-actions-deploy-aur@v2.2.5
|
- uses: KSXGitHub/github-actions-deploy-aur@v2.2.5
|
||||||
@ -274,4 +271,4 @@ jobs:
|
|||||||
commit_username: ${{ secrets.AUR_USERNAME }}
|
commit_username: ${{ secrets.AUR_USERNAME }}
|
||||||
commit_email: ${{ secrets.AUR_EMAIL }}
|
commit_email: ${{ secrets.AUR_EMAIL }}
|
||||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||||
commit_message: Updated to v${{ github.event.inputs.tag }}
|
commit_message: Updated to v${{ steps.tag.outputs.tag }}
|
||||||
|
20
CHANGELOG.md
20
CHANGELOG.md
@ -1,3 +1,23 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||||
|
|
||||||
|
## [2.4.1](https://github.com/KRTirtho/spotube/compare/v2.4.0...v2.4.1) (2022-09-13)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add macos audio metadata tags support ([5866b0f](https://github.com/KRTirtho/spotube/commit/5866b0fcd661cf32060bb1485ea81634fbb9b90a))
|
||||||
|
* remove macos bounds for reading and writing audio metadata ([16064f6](https://github.com/KRTirtho/spotube/commit/16064f68e882b091401ace4b895e387f46635800))
|
||||||
|
* **search:** horizontal swipe scroll support for Desktop platform ([d5ff927](https://github.com/KRTirtho/spotube/commit/d5ff927c7273b6e72c5d775ee777f2cbd0d6d05c))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **artist-page:** SpotubeMarqueeText used in ArtistCard crashes the app ([4279541](https://github.com/KRTirtho/spotube/commit/427954150ab65b250e79fc844fc864abff5b6972))
|
||||||
|
* **layout:** Fix adaptive UI not working correctly by providing a overriding option ([8c7adde](https://github.com/KRTirtho/spotube/commit/8c7adde890105e0267b71994b7928277f84553e5))
|
||||||
|
* **local-track:** throwing exception when downloadLocation is empty ([1a3556d](https://github.com/KRTirtho/spotube/commit/1a3556d39e8473cadb6143192c48465dc6485599))
|
||||||
|
|
||||||
## [2.4.0](https://github.com/KRTirtho/spotube/compare/v2.3.0...v2.4.0) (2022-09-09)
|
## [2.4.0](https://github.com/KRTirtho/spotube/compare/v2.3.0...v2.4.0) (2022-09-09)
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,9 +24,10 @@ class About extends HookWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final info = usePackageInfo(
|
final info = usePackageInfo(
|
||||||
appName: "Spotube",
|
appName: "Spotube",
|
||||||
packageName: "oss.krtirtho.Spotube",
|
packageName: "oss.krtirtho.Spotube",
|
||||||
version: "2.4.0");
|
version: "2.4.1",
|
||||||
|
);
|
||||||
|
|
||||||
return ListTile(
|
return ListTile(
|
||||||
leading: Icon(Icons.info_outline_rounded),
|
leading: Icon(Icons.info_outline_rounded),
|
||||||
|
@ -3,7 +3,7 @@ description: A lightweight free Spotify crossplatform-client which handles playb
|
|||||||
|
|
||||||
publish_to: "none"
|
publish_to: "none"
|
||||||
|
|
||||||
version: 2.4.0+13
|
version: 2.4.1+14
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.17.0 <3.0.0"
|
sdk: ">=2.17.0 <3.0.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user