cmake: add timestamp to artifacts

This commit is contained in:
zdenop 2024-06-11 16:59:48 +02:00
parent a387624e9f
commit 694cd16cb8

View File

@ -26,9 +26,12 @@ jobs:
- name: Get the version
id: get_version
continue-on-error: true
run: |
$git_info=$(git describe --tags HEAD)
$stamp=$(date +'%Y-%m-%d_%H%M%S')
echo "version=${git_info}" >> $env:GITHUB_OUTPUT
echo "stamp=${stamp}" >> $env:GITHUB_OUTPUT
- name: Setup Installation Location
run: |
@ -107,7 +110,7 @@ jobs:
- name: Upload Build Results
uses: actions/upload-artifact@v4
with:
name: tesseract-${{ steps.get_version.outputs.version }}-VS2019_win64
name: tesseract-${{ steps.get_version.outputs.version }}-${{steps.get_version.outputs.stamp}}-VS2019_win64
path: ${{env.ILOC}}
retention-days: 5