Files
eh_downloader_flutter/.github/workflows/windows.yml
2023-11-26 15:25:37 +08:00

40 lines
954 B
YAML

name: Windows build
on:
push:
branches: ["*"]
paths-ignore:
- '.github/workflows/android.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/web.yml'
- 'android/**'
- 'ios/**'
- 'linux/**'
- 'macos/**'
- 'web/**'
- '.gitignore'
- '.gitmodules'
- 'README.md'
- 'LICENSE'
jobs:
windows:
runs-on: windows-latest
steps:
- name: Check Out
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Setup flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Build
run: flutter build windows --release
- name: Package files
run: cd build/windows/x64/runner/Release && 7z a -mx9 -y ../../../../../windows.7z
- name: Upload files
uses: actions/upload-artifact@v3
with:
name: windows
path: ./windows.7z