no more github actions for windows
This commit is contained in:
@@ -33,36 +33,15 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Git Bash (for Flutter internal scripts)
|
||||
shell: pwsh
|
||||
run: |
|
||||
# Add Git Bash to PATH for Flutter internal scripts that might need it
|
||||
$gitPath = "${env:ProgramFiles}\Git\bin"
|
||||
if (Test-Path $gitPath) {
|
||||
$env:PATH = "$gitPath;$env:PATH"
|
||||
echo "PATH=$env:PATH" >> $env:GITHUB_ENV
|
||||
Write-Host "Added Git Bash to PATH: $gitPath"
|
||||
} else {
|
||||
Write-Host "Git Bash not found at expected location"
|
||||
}
|
||||
|
||||
- name: Setup Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: 'stable'
|
||||
cache: true
|
||||
|
||||
- name: Enable Windows desktop
|
||||
shell: pwsh
|
||||
run: flutter config --enable-windows-desktop
|
||||
|
||||
- name: Verify Flutter setup
|
||||
shell: pwsh
|
||||
run: flutter doctor -v
|
||||
shell: powershell
|
||||
run: |
|
||||
flutter --version
|
||||
flutter doctor -v
|
||||
|
||||
- name: Create production .env file
|
||||
working-directory: flutter_app
|
||||
shell: pwsh
|
||||
shell: powershell
|
||||
env:
|
||||
WS_URL: ${{ secrets.WS_URL }}
|
||||
API_URL: ${{ secrets.API_URL }}
|
||||
@@ -72,12 +51,12 @@ jobs:
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: flutter_app
|
||||
shell: pwsh
|
||||
shell: powershell
|
||||
run: flutter pub get
|
||||
|
||||
- name: Setup Certificate for Signing
|
||||
working-directory: flutter_app
|
||||
shell: pwsh
|
||||
shell: powershell
|
||||
env:
|
||||
CERT_BASE64: ${{ secrets.CERT_BASE64 }}
|
||||
CERT_PASSWORD: ${{ secrets.CERT_PASSWORD }}
|
||||
@@ -101,7 +80,7 @@ jobs:
|
||||
|
||||
- name: Build Windows release with installer
|
||||
working-directory: flutter_app
|
||||
shell: pwsh
|
||||
shell: powershell
|
||||
env:
|
||||
CERT_PASSWORD: ${{ secrets.CERT_PASSWORD }}
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user