From 1a622350240709e1b7f90ec90530e26937473b2e Mon Sep 17 00:00:00 2001 From: Luke Horwell Date: Tue, 18 Jun 2024 20:06:50 +0100 Subject: [PATCH] CI: Write git version in build artifact --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index faf2f27..5aa7278 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,7 +32,8 @@ jobs: run: | .\venv\Scripts\activate python setup.py build - copy version.txt dist\ + git fetch --tags --unshallow + git describe --tags > dist\version.txt copy assets\github.url "dist\View on GitHub.url" - name: Upload @@ -71,7 +72,8 @@ jobs: run: | source venv/bin/activate python setup.py build - cp version.txt dist/ + git fetch --tags --unshallow + git describe --tags > dist/version.txt echo "https://github.com/lah7/sims2-4k-ui-patch" > "dist/View on GitHub.txt" - name: Upload