name: GUI Version Release on: push: branches: [ master ] jobs: gui-version-release: runs-on: windows steps: # Step 1: Checkout code - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 2 # Step 2: Setup Python environment - name: Setup Python uses: actions/setup-python@v4 with: python-version: '3.11' # Step 3: Install dependencies - name: Install dependencies shell: powershell run: | python -m pip install --upgrade pip pip install psycopg2-binary Write-Host "Dependencies installed successfully" # Step 4: Create GUI version record - name: Create version record id: create_version shell: powershell env: DB_HOST: 8.155.9.53 DB_PORT: 5400 DB_NAME: ai_web DB_USER: user_emKCAb DB_PASSWORD: password_ee2iQ3 run: | Write-Host "Starting GUI version release process..." Write-Host "Commit hash: ${{ github.sha }}" Write-Host "Commit author: ${{ github.actor }}" Write-Host "Branch: ${{ github.ref_name }}" Write-Host "Database: $env:DB_NAME @ $env:DB_HOST" python .gitea/scripts/gui_version_creator.py if ($LASTEXITCODE -eq 0) { Write-Host "Version record created successfully" } else { Write-Host "Failed to create version record" exit 1 } # Step 5: Show summary - name: Display summary if: always() shell: powershell run: | Write-Host "==========================================" Write-Host "GUI Version Release Summary" Write-Host "==========================================" Write-Host "Author: ${{ github.actor }}" Write-Host "Branch: ${{ github.ref_name }}" Write-Host "Commit: ${{ github.sha }}" Write-Host "Time: $(Get-Date -Format 'yyyy-MM-dd HH:mm:ss')" Write-Host "Status: ${{ job.status }}" Write-Host "=========================================="