From d226f41957892206ad47cf5aac4bc4829e593d9a Mon Sep 17 00:00:00 2001 From: jjz <3082705704@qq.com> Date: Thu, 9 Oct 2025 16:25:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ci/cd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/gui-version-release.yml | 39 ++++++++++++------------ 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.gitea/workflows/gui-version-release.yml b/.gitea/workflows/gui-version-release.yml index 13b0e3c..323be6b 100644 --- a/.gitea/workflows/gui-version-release.yml +++ b/.gitea/workflows/gui-version-release.yml @@ -9,42 +9,40 @@ jobs: runs-on: windows steps: - # Step 1: Check working directory - - name: Check working environment + # Step 1: Change to repository directory + - name: Change to repository directory shell: powershell run: | - Write-Host "Current working directory:" - Get-Location + Write-Host "Current directory: $(Get-Location)" + + # Change to repository root + cd ${{ github.workspace }} + Write-Host "Changed to: $(Get-Location)" + Write-Host "Directory contents:" Get-ChildItem + Write-Host "Git status:" - try { - git status - } catch { - Write-Host "Not a git repository" - } + git status # Step 2: Check Python environment - name: Check Python environment shell: powershell run: | + cd ${{ github.workspace }} + Write-Host "Python version:" - try { - python --version - } catch { - Write-Host "Python not installed" - } + python --version + Write-Host "Pip version:" - try { - pip --version - } catch { - Write-Host "Pip not installed" - } + pip --version # Step 3: Install dependencies - name: Install dependencies shell: powershell run: | + cd ${{ github.workspace }} + Write-Host "Installing psycopg2-binary..." python -m pip install --upgrade pip @@ -66,7 +64,10 @@ jobs: id: create_version shell: powershell run: | + cd ${{ github.workspace }} + Write-Host "Starting GUI version release process..." + Write-Host "Working directory: $(Get-Location)" Write-Host "Commit hash: ${{ github.sha }}" Write-Host "Commit author: ${{ github.actor }}" Write-Host "Branch: ${{ github.ref_name }}"