Skip to content

Commit 2d01750

Browse files
committed
chore: update build script
1 parent 30915bd commit 2d01750

File tree

3 files changed

+23
-13
lines changed

3 files changed

+23
-13
lines changed

Diff for: .github/workflows/release_for_android.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ jobs:
4242
- name: Build APK
4343
run: .flutter/bin/flutter build apk --split-per-abi
4444

45-
- name: Released
46-
uses: ncipollo/release-action@v1.12.0
45+
- name: Release
46+
uses: softprops/action-gh-release@v1
4747
with:
48-
artifacts: >
48+
files: >
4949
build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk,
5050
build/app/outputs/flutter-apk/app-arm64-v8a-release.apk,
5151
build/app/outputs/flutter-apk/app-x86_64-release.apk
52+
prerelease: false
53+
tag_name: ${{ github.event.inputs.tag_name }}
5254
token: ${{ secrets.RELEASE_TOKEN }}

Diff for: .github/workflows/release_for_linux_deb.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ jobs:
3636
export PATH="$PATH":"$HOME/.pub-cache/bin":".flutter/bin/"
3737
flutter_to_debian
3838
39-
- name: upload result
40-
uses: ncipollo/release-action@v1.12.0
39+
- name: Release
40+
uses: softprops/action-gh-release@v1
4141
with:
42-
artifacts: >
43-
build/linux/x64/release/debian/,
42+
files: >
43+
build/linux/x64/release/debian/watermeter_1.1.0_amd64.deb
44+
prerelease: false
45+
tag_name: ${{ github.event.inputs.tag_name }}
4446
token: ${{ secrets.RELEASE_TOKEN }}

Diff for: .github/workflows/release_for_windows.yml

+12-6
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,20 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313
- name: Install Flutter
14-
run: |
15-
git submodule update --init --recursive
14+
uses: subosito/flutter-action@v2
15+
with:
16+
channel: 'stable'
1617
- run: flutter create --platforms=windows .
1718
- run: flutter build windows --release
19+
20+
- name: Package Executable
21+
run: 7z a -r -sse ..\..\..\..\build\app\app-release.zip *
22+
working-directory: build\windows\runner\Release
1823

19-
- name: upload result
20-
uses: ncipollo/release-action@v1.12.0
24+
- name: Release
25+
uses: softprops/action-gh-release@v1
2126
with:
22-
artifacts: >
23-
build/windows/x64/runner/Release/,
27+
files: build/app/app-release.zip,
28+
prerelease: false
29+
tag_name: ${{ github.event.inputs.tag_name }}
2430
token: ${{ secrets.RELEASE_TOKEN }}

0 commit comments

Comments
 (0)