Skip to content

Commit

Permalink
chore: update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
BenderBlog committed Mar 5, 2024
1 parent 30915bd commit 2d01750
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release_for_android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ jobs:
- name: Build APK
run: .flutter/bin/flutter build apk --split-per-abi

- name: Released
uses: ncipollo/release-action@v1.12.0
- name: Release
uses: softprops/action-gh-release@v1
with:
artifacts: >
files: >
build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk,
build/app/outputs/flutter-apk/app-arm64-v8a-release.apk,
build/app/outputs/flutter-apk/app-x86_64-release.apk
prerelease: false
tag_name: ${{ github.event.inputs.tag_name }}
token: ${{ secrets.RELEASE_TOKEN }}
10 changes: 6 additions & 4 deletions .github/workflows/release_for_linux_deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ jobs:
export PATH="$PATH":"$HOME/.pub-cache/bin":".flutter/bin/"
flutter_to_debian
- name: upload result
uses: ncipollo/release-action@v1.12.0
- name: Release
uses: softprops/action-gh-release@v1
with:
artifacts: >
build/linux/x64/release/debian/,
files: >
build/linux/x64/release/debian/watermeter_1.1.0_amd64.deb
prerelease: false
tag_name: ${{ github.event.inputs.tag_name }}
token: ${{ secrets.RELEASE_TOKEN }}
18 changes: 12 additions & 6 deletions .github/workflows/release_for_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Flutter
run: |
git submodule update --init --recursive
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter create --platforms=windows .
- run: flutter build windows --release

- name: Package Executable
run: 7z a -r -sse ..\..\..\..\build\app\app-release.zip *
working-directory: build\windows\runner\Release

- name: upload result
uses: ncipollo/release-action@v1.12.0
- name: Release
uses: softprops/action-gh-release@v1
with:
artifacts: >
build/windows/x64/runner/Release/,
files: build/app/app-release.zip,
prerelease: false
tag_name: ${{ github.event.inputs.tag_name }}
token: ${{ secrets.RELEASE_TOKEN }}

0 comments on commit 2d01750

Please sign in to comment.