Skip to content

Commit

Permalink
Added windows build in github action runner
Browse files Browse the repository at this point in the history
  • Loading branch information
hmziqrs committed Nov 9, 2024
1 parent bfb88a2 commit cf197ed
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,31 +134,31 @@ jobs:
token: ${{ secrets.TOKEN }}
allowUpdates: true

# windows:
# name: Windows
# runs-on: windows-latest
# steps:
# - name: Set up Flutter
# uses: subosito/flutter-action@v2
# with:
# flutter-version: '3.22.2'
# channel: 'stable'

# - uses: actions/checkout@v4
# with:
# path: 'app'

# - run: |
# cd app
# flutter config --enable-windows-desktop
# flutter pub get
# flutter build windows --release
# cd build\windows\runner
# Compress-Archive -Path Release -DestinationPath windows-release.zip

# - name: Windows release build for github
# uses: ncipollo/release-action@v1
# with:
# artifacts: 'app\build\windows\runner\windows-release.zip'
# token: ${{ secrets.TOKEN }}
# allowUpdates: true
windows:
name: Windows
runs-on: windows-latest
steps:
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.24.4"
channel: "stable"

- uses: actions/checkout@v4
with:
path: "app"

- run: |
cd app
flutter config --enable-windows-desktop
flutter pub get
flutter build windows --release
cd build\windows\x64\runner
Compress-Archive -Path Release -DestinationPath windows-release.zip
- name: Windows release build for github
uses: ncipollo/release-action@v1
with:
artifacts: 'app\build\windows\runner\windows-release.zip'
token: ${{ secrets.TOKEN }}
allowUpdates: true

0 comments on commit cf197ed

Please sign in to comment.