Skip to content

Commit 5a2f3ca

Browse files
authored
Update release_for_windows.yml
1 parent 82e19bd commit 5a2f3ca

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/release_for_windows.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,20 @@ jobs:
1313
- name: Install Flutter
1414
run: |
1515
git submodule update --init --recursive
16-
- run: .flutter/bin/flutter.bat create --platforms=windows .
17-
- run: .flutter/bin/flutter.bat build windows --release
16+
17+
- name: Build for Windows
18+
run: |
19+
.flutter/bin/flutter.bat create --platforms=windows .
20+
.flutter/bin/flutter.bat build windows --release
1821
1922
- name: Package Executable
20-
run: 7z a -r -sse "..\..\..\..\..\build\app\watermeter-release-amd64.zip" *
23+
run: 7z a -r -sse "..\..\..\..\..\build\app\watermeter-windows-release-amd64.zip" *
2124
working-directory: build\windows\x64\runner\Release
2225

2326
- name: Release
2427
uses: softprops/action-gh-release@v1
2528
with:
26-
files: build/app/watermeter-release-amd64.zip
29+
files: build/app/watermeter-windows-release-amd64.zip
2730
prerelease: false
28-
tag_name: ${{ steps.get_version.outputs.VERSION }}
31+
tag_name: ${{ github.event.inputs.tag_name }}
2932
token: ${{ secrets.RELEASE_TOKEN }}

0 commit comments

Comments
 (0)