Update .gitea/workflows/release.yml
This commit is contained in:
@@ -134,46 +134,6 @@ jobs:
|
|||||||
name: linux-bundle
|
name: linux-bundle
|
||||||
path: app-linux-x64.tar.gz
|
path: app-linux-x64.tar.gz
|
||||||
|
|
||||||
windows-build:
|
|
||||||
runs-on: windows-latest
|
|
||||||
needs: meta
|
|
||||||
# Job always runs; steps are conditional so it won't block anything when Windows is disabled.
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
if: ${{ env.BUILD_WINDOWS == 'true' }}
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup Flutter
|
|
||||||
if: ${{ env.BUILD_WINDOWS == 'true' }}
|
|
||||||
uses: subosito/flutter-action@v2
|
|
||||||
with:
|
|
||||||
channel: ${{ env.FLUTTER_CHANNEL }}
|
|
||||||
|
|
||||||
- name: Allow all git directories (CI)
|
|
||||||
if: ${{ env.BUILD_WINDOWS == 'true' }}
|
|
||||||
run: git config --global --add safe.directory '*'
|
|
||||||
|
|
||||||
- name: Flutter dependencies
|
|
||||||
if: ${{ env.BUILD_WINDOWS == 'true' }}
|
|
||||||
run: flutter pub get
|
|
||||||
|
|
||||||
- name: Enable Windows desktop
|
|
||||||
if: ${{ env.BUILD_WINDOWS == 'true' }}
|
|
||||||
run: flutter config --enable-windows-desktop
|
|
||||||
|
|
||||||
- name: Build Windows binary (release)
|
|
||||||
if: ${{ env.BUILD_WINDOWS == 'true' }}
|
|
||||||
run: |
|
|
||||||
flutter build windows --release
|
|
||||||
powershell -Command "Compress-Archive -Path build/windows/x64/runner/Release/* -DestinationPath app-windows-x64.zip"
|
|
||||||
|
|
||||||
- name: Upload Windows artifact
|
|
||||||
if: ${{ env.BUILD_WINDOWS == 'true' }}
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: windows-zip
|
|
||||||
path: app-windows-x64.zip
|
|
||||||
|
|
||||||
release-dev:
|
release-dev:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
|
|||||||
Reference in New Issue
Block a user