no more github actions for windows
This commit is contained in:
@@ -33,36 +33,15 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Verify Flutter setup
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: flutter doctor -v
|
run: |
|
||||||
|
flutter --version
|
||||||
|
flutter doctor -v
|
||||||
|
|
||||||
- name: Create production .env file
|
- name: Create production .env file
|
||||||
working-directory: flutter_app
|
working-directory: flutter_app
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
env:
|
env:
|
||||||
WS_URL: ${{ secrets.WS_URL }}
|
WS_URL: ${{ secrets.WS_URL }}
|
||||||
API_URL: ${{ secrets.API_URL }}
|
API_URL: ${{ secrets.API_URL }}
|
||||||
@@ -72,12 +51,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
working-directory: flutter_app
|
working-directory: flutter_app
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: flutter pub get
|
run: flutter pub get
|
||||||
|
|
||||||
- name: Setup Certificate for Signing
|
- name: Setup Certificate for Signing
|
||||||
working-directory: flutter_app
|
working-directory: flutter_app
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
env:
|
env:
|
||||||
CERT_BASE64: ${{ secrets.CERT_BASE64 }}
|
CERT_BASE64: ${{ secrets.CERT_BASE64 }}
|
||||||
CERT_PASSWORD: ${{ secrets.CERT_PASSWORD }}
|
CERT_PASSWORD: ${{ secrets.CERT_PASSWORD }}
|
||||||
@@ -101,7 +80,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Windows release with installer
|
- name: Build Windows release with installer
|
||||||
working-directory: flutter_app
|
working-directory: flutter_app
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
env:
|
env:
|
||||||
CERT_PASSWORD: ${{ secrets.CERT_PASSWORD }}
|
CERT_PASSWORD: ${{ secrets.CERT_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user