mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-06 00:23:58 +00:00
Github Actions: Add git commit hash to version for non-release builds
This commit is contained in:
4
.github/workflows/package-macos.yml
vendored
4
.github/workflows/package-macos.yml
vendored
@@ -13,6 +13,10 @@ jobs:
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.7
|
||||
- name: Patch build version
|
||||
if: startsWith(github.ref, 'refs/tags/') != true
|
||||
run: |
|
||||
python setup.py patch_version --platform=$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
|
||||
- name: Setup macOS build environment
|
||||
run: |
|
||||
./scripts/package/macos-setup.sh
|
||||
|
||||
4
.github/workflows/package-windows.yml
vendored
4
.github/workflows/package-windows.yml
vendored
@@ -13,6 +13,10 @@ jobs:
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.7
|
||||
- name: Patch build version
|
||||
if: startsWith(github.ref, 'refs/tags/') != true
|
||||
run: |
|
||||
python setup.py patch_version --platform=$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
|
||||
- name: Setup Windows build environment
|
||||
run: |
|
||||
& .\scripts\package\win-setup.ps1 -DiscidVersion $Env:DISCID_VERSION -FpcalVersion $Env:FPCALC_VERSION
|
||||
|
||||
Reference in New Issue
Block a user