修改ci/cd

This commit is contained in:
jjz
2025-10-09 16:30:08 +08:00
parent d226f41957
commit afb844f1e6

View File

@@ -9,40 +9,46 @@ jobs:
runs-on: windows runs-on: windows
steps: steps:
# Step 1: Change to repository directory # Step 0: Checkout code
- name: Change to repository directory - name: Checkout code
uses: actions/checkout@v4
# Step 1: Check working directory
- name: Check working environment
shell: powershell shell: powershell
run: | run: |
Write-Host "Current directory: $(Get-Location)" Write-Host "Current working directory:"
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:"
git status try {
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:"
python --version try {
python --version
} catch {
Write-Host "Python not installed"
}
Write-Host "Pip version:" Write-Host "Pip version:"
pip --version try {
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
@@ -64,10 +70,7 @@ 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 }}"