Skip to content

Commit

Permalink
Update release_for_windows.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BenderBlog authored Mar 10, 2024
1 parent 82e19bd commit 5a2f3ca
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release_for_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,20 @@ jobs:
- name: Install Flutter
run: |
git submodule update --init --recursive
- run: .flutter/bin/flutter.bat create --platforms=windows .
- run: .flutter/bin/flutter.bat build windows --release
- name: Build for Windows
run: |
.flutter/bin/flutter.bat create --platforms=windows .
.flutter/bin/flutter.bat build windows --release
- name: Package Executable
run: 7z a -r -sse "..\..\..\..\..\build\app\watermeter-release-amd64.zip" *
run: 7z a -r -sse "..\..\..\..\..\build\app\watermeter-windows-release-amd64.zip" *
working-directory: build\windows\x64\runner\Release

- name: Release
uses: softprops/action-gh-release@v1
with:
files: build/app/watermeter-release-amd64.zip
files: build/app/watermeter-windows-release-amd64.zip
prerelease: false
tag_name: ${{ steps.get_version.outputs.VERSION }}
tag_name: ${{ github.event.inputs.tag_name }}
token: ${{ secrets.RELEASE_TOKEN }}

0 comments on commit 5a2f3ca

Please sign in to comment.