Github Actions: Add git commit hash to version for non-release builds

This commit is contained in:
Philipp Wolfer
2019-11-26 00:20:13 +01:00
parent 7827b1bf16
commit a24e84f3bd
2 changed files with 8 additions and 0 deletions

View File

@@ -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

View File

@@ -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