ci: make release workflow fully self-contained (no GitHub actions)
Release / build (push) Failing after 13s

Replace actions/checkout + actions/setup-python (pulled from github.com by
default) with a manual git clone at the tag and the runner's system Python.
This commit is contained in:
2026-06-01 12:40:41 +03:00
parent 9ef788fe5b
commit ac1c40d754
+10 -6
View File
@@ -8,16 +8,20 @@ on:
permissions: permissions:
contents: write contents: write
# Self-contained: no external (GitHub-hosted) actions. Runs on a self-hosted
# Windows runner (label `windows`) that already has Python 3.12 on PATH.
jobs: jobs:
build: build:
runs-on: windows runs-on: windows
steps: steps:
- uses: actions/checkout@v4 - name: Checkout repository at tag
shell: pwsh
- name: Set up Python env:
uses: actions/setup-python@v5 TOKEN: ${{ github.token }}
with: run: |
python-version: '3.12' $base = "${{ github.server_url }}" -replace '^https://', ''
$url = "https://oauth2:$env:TOKEN@$base/${{ github.repository }}.git"
git clone --depth 1 --branch "$env:GITHUB_REF_NAME" $url .
- name: Install build dependencies - name: Install build dependencies
run: python -m pip install --upgrade pip pyinstaller rich run: python -m pip install --upgrade pip pyinstaller rich