Refactor configuration management: migrate to per-user storage, update encryption handling, and enhance versioning in CI
This commit is contained in:
15
.github/workflows/build-release.yml
vendored
15
.github/workflows/build-release.yml
vendored
@@ -31,6 +31,21 @@ jobs:
|
||||
python -m pip install -r requirements.txt
|
||||
python -m pip install pyinstaller
|
||||
|
||||
- name: Stamp version (dev builds)
|
||||
if: startsWith(github.ref, 'refs/heads/')
|
||||
shell: pwsh
|
||||
run: |
|
||||
$sha = "${{ github.sha }}".Substring(0,7)
|
||||
Set-Content -Path version.py -Value "__version__ = `"0.0.0.dev0+$sha`"`n" -Encoding utf8
|
||||
|
||||
- name: Stamp version (tag builds)
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
shell: pwsh
|
||||
run: |
|
||||
$tag = "${{ github.ref_name }}"
|
||||
$ver = ($tag -replace '^v','')
|
||||
Set-Content -Path version.py -Value "__version__ = `"$ver`"`n" -Encoding utf8
|
||||
|
||||
- name: Build (PyInstaller spec)
|
||||
shell: pwsh
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user