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:
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:
build:
runs-on: windows
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Checkout repository at tag
shell: pwsh
env:
TOKEN: ${{ github.token }}
run: |
$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
run: python -m pip install --upgrade pip pyinstaller rich