Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 556f1de

Browse files
committed
move env.ini into the publish-winpython action
1 parent 78d5ff8 commit 556f1de

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

.github/actions/publish-winpython/action.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'WinPython Publish Action'
2-
description: 'Generates metadata, pylock files, compresses artifacts, and calculates hashes'
2+
description: 'Generates env.ini, metadata, pylock files, compresses artifacts, and calculates hashes'
33

44
inputs:
55
build_location:
@@ -28,6 +28,22 @@ inputs:
2828
runs:
2929
using: "composite"
3030
steps:
31+
- name: Write env.ini file
32+
shell: pwsh
33+
run: |
34+
$destDir = Join-Path "${{ inputs.build_location }}" "scripts"
35+
if (!(Test-Path $destDir)) { mkdir -Force $destDir }
36+
37+
# Create the ini content
38+
$iniContent = @(
39+
"WINPYVER=${{ inputs.winpy_ver }}"
40+
"WINPYVER2=${{ inputs.winpy_ver2 }}"
41+
"WINPYFLAVOR=${{ inputs.winpy_flavor }}"
42+
"WINPYARCH=${{ inputs.winpy_arch }}"
43+
)
44+
$iniContent | Out-File -FilePath "env.ini" -Encoding ascii
45+
Copy-Item -Path "env.ini" -Destination "$destDir\env.ini" -Force
46+
3147
- name: Generate Metadata and Pylock
3248
shell: pwsh
3349
run: |

.github/workflows/github_workflows_build-2026_01.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -172,19 +172,6 @@ jobs:
172172
& "$env:build_location\python\python.exe" -m pip install --upgrade packaging==25.0
173173
& "$env:build_location\python\python.exe" -c "from wppm import wppm;dist=wppm.Distribution();dist.patch_standard_packages('pip', to_movable=True)"
174174
175-
- name: Write env.ini file
176-
if: env.WINPYREQUIREMENTS != ''
177-
shell: pwsh
178-
run: |
179-
$destDir = "$env:build_location\scripts"
180-
echo "WINPYthon_exe=$env:WINPYthon_exe" > env.ini
181-
echo "WINPYthon_subdirectory_name=$env:WINPYthon_subdirectory_name" >> env.ini
182-
echo "WINPYVER=$env:WINPYVER" >> env.ini
183-
echo "WINPYVER2=$env:WINPYVER2" >> env.ini
184-
echo "WINPYFLAVOR=$env:WINPYFLAVOR" >> env.ini
185-
echo "WINPYARCH=$env:WINPYARCH" >> env.ini
186-
Copy-Item -Path "env.ini" -Destination "$destDir\env.ini"
187-
188175
- name: Download requirements to $env:dotwheelhouse
189176
if: env.WINPYREQUIREMENTS != ''
190177
shell: pwsh

0 commit comments

Comments
 (0)