diff --git a/.gitea/workflows/gui-version-release.yml b/.gitea/workflows/gui-version-release.yml index 323be6b..6d205ab 100644 --- a/.gitea/workflows/gui-version-release.yml +++ b/.gitea/workflows/gui-version-release.yml @@ -9,40 +9,46 @@ jobs: runs-on: windows steps: - # Step 1: Change to repository directory - - name: Change to repository directory + # Step 0: Checkout code + - name: Checkout code + uses: actions/checkout@v4 + + # Step 1: Check working directory + - name: Check working environment shell: powershell run: | - Write-Host "Current directory: $(Get-Location)" - - # Change to repository root - cd ${{ github.workspace }} - Write-Host "Changed to: $(Get-Location)" - + Write-Host "Current working directory:" + Get-Location Write-Host "Directory contents:" Get-ChildItem - Write-Host "Git status:" - git status + try { + git status + } catch { + Write-Host "Not a git repository" + } # Step 2: Check Python environment - name: Check Python environment shell: powershell run: | - cd ${{ github.workspace }} - Write-Host "Python version:" - python --version - + try { + python --version + } catch { + Write-Host "Python not installed" + } Write-Host "Pip version:" - pip --version + try { + pip --version + } catch { + Write-Host "Pip not installed" + } # Step 3: Install dependencies - name: Install dependencies shell: powershell run: | - cd ${{ github.workspace }} - Write-Host "Installing psycopg2-binary..." python -m pip install --upgrade pip @@ -64,10 +70,7 @@ 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 }}"