Skip to content

Commit

Permalink
CI: Write git version in build artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
lah7 committed Jun 18, 2024
1 parent 09c647f commit 1a62235
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1a62235

Please sign in to comment.