修改ci/cd

This commit is contained in:
jjz
2025-10-09 16:25:59 +08:00
parent 497f0a3719
commit d226f41957

View File

@@ -9,42 +9,40 @@ jobs:
runs-on: windows runs-on: windows
steps: steps:
# Step 1: Check working directory # Step 1: Change to repository directory
- name: Check working environment - name: Change to repository directory
shell: powershell shell: powershell
run: | run: |
Write-Host "Current working directory:" Write-Host "Current directory: $(Get-Location)"
Get-Location
# Change to repository root
cd ${{ github.workspace }}
Write-Host "Changed to: $(Get-Location)"
Write-Host "Directory contents:" Write-Host "Directory contents:"
Get-ChildItem Get-ChildItem
Write-Host "Git status:" Write-Host "Git status:"
try { git status
git status
} catch {
Write-Host "Not a git repository"
}
# Step 2: Check Python environment # Step 2: Check Python environment
- name: Check Python environment - name: Check Python environment
shell: powershell shell: powershell
run: | run: |
cd ${{ github.workspace }}
Write-Host "Python version:" Write-Host "Python version:"
try { python --version
python --version
} catch {
Write-Host "Python not installed"
}
Write-Host "Pip version:" Write-Host "Pip version:"
try { pip --version
pip --version
} catch {
Write-Host "Pip not installed"
}
# Step 3: Install dependencies # Step 3: Install dependencies
- name: Install dependencies - name: Install dependencies
shell: powershell shell: powershell
run: | run: |
cd ${{ github.workspace }}
Write-Host "Installing psycopg2-binary..." Write-Host "Installing psycopg2-binary..."
python -m pip install --upgrade pip python -m pip install --upgrade pip
@@ -66,7 +64,10 @@ jobs:
id: create_version id: create_version
shell: powershell shell: powershell
run: | run: |
cd ${{ github.workspace }}
Write-Host "Starting GUI version release process..." Write-Host "Starting GUI version release process..."
Write-Host "Working directory: $(Get-Location)"
Write-Host "Commit hash: ${{ github.sha }}" Write-Host "Commit hash: ${{ github.sha }}"
Write-Host "Commit author: ${{ github.actor }}" Write-Host "Commit author: ${{ github.actor }}"
Write-Host "Branch: ${{ github.ref_name }}" Write-Host "Branch: ${{ github.ref_name }}"