Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
HemantKArya committed Jul 7, 2024
1 parent d6cb840 commit 4cacb89
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: "Build & Release"

on:
workflow_dispatch:
push:
branches: main


jobs:
Expand Down Expand Up @@ -51,7 +52,7 @@ jobs:
run: jarsigner --verify --verbose build/app/outputs/flutter-apk/app-release.apk

- name: Rename APK file
run: Rename-Item -Path "build/app/outputs/flutter-apk/app-release.apk" -NewName "bloomee_tunes_android_v2.8.0+${{github.run_number}}.apk"
run: Rename-Item -Path "build/app/outputs/flutter-apk/app-release.apk" -NewName "bloomee_tunes_android_v2.8.1+${{github.run_number}}.apk"

- name: Build Windows App
run: flutter build windows --release --build-number ${{github.run_number}}
Expand All @@ -60,22 +61,22 @@ jobs:
run: Rename-Item -Path "build/windows/x64/runner/Release/bloomee.exe" -NewName "Bloomee.exe"

- name: ZIP build
run: Compress-Archive -Path build/windows/x64/runner/Release/* -Destination build/windows/x64/bloomee_tunes_windows_x64_v2.8.0+${{github.run_number}}.zip
run: Compress-Archive -Path build/windows/x64/runner/Release/* -Destination build/windows/x64/bloomee_tunes_windows_x64_v2.8.1+${{github.run_number}}.zip

- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: Release
path: |
build/app/outputs/flutter-apk/bloomee_tunes_android_v2.8.0+${{github.run_number}}.apk
build/windows/x64/bloomee_tunes_windows_x64_v2.8.0+${{github.run_number}}.zip
build/app/outputs/flutter-apk/bloomee_tunes_android_v2.8.1+${{github.run_number}}.apk
build/windows/x64/bloomee_tunes_windows_x64_v2.8.1+${{github.run_number}}.zip
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: |
build/windows/x64/bloomee_tunes_windows_x64_v2.8.0+${{github.run_number}}.zip
build/app/outputs/flutter-apk/bloomee_tunes_android_v2.8.0+${{github.run_number}}.apk
tag: v2.8.0+${{github.run_number}}
build/windows/x64/bloomee_tunes_windows_x64_v2.8.1+${{github.run_number}}.zip
build/app/outputs/flutter-apk/bloomee_tunes_android_v2.8.1+${{github.run_number}}.apk
tag: v2.8.1+${{github.run_number}}
token: ${{secrets.SECRET_KEY}}


2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 2.8.0+0
version: 2.8.1+0

environment:
sdk: '>=3.0.6 <4.0.0'
Expand Down

0 comments on commit 4cacb89

Please sign in to comment.