Skip to content

Commit

Permalink
e fix dirty version tag handling
Browse files Browse the repository at this point in the history
... also removed daily builds
  • Loading branch information
Berhard Raml committed Aug 29, 2023
1 parent 2f2e096 commit 9d71bcd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: ubuntu
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *' # daily

jobs:
build:
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ test:
pytest -rsx --verbose --color=yes --cov=equi7grid --cov-report term-missing

version:
echo -e "__version__ = \"$(shell git describe --always --tags --abbrev=0)\"\n__commit__ = \"$(shell git rev-parse --short HEAD)\"" > src/equi7grid/_version.py
@version=$(shell git describe --always --tags | awk -F'[-]' '{if (NF == 1) print $$1; else printf "%s.dev%s+g%s\n", $$1, $$2, substr($$3, 2)}')
echo -e "__version__ = \"$$version\"\n__commit__ = \"$(shell git rev-parse --short HEAD)\"" > src/equi7grid/_version.py

dist: version
pip3 install build twine
Expand Down
4 changes: 2 additions & 2 deletions src/equi7grid/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "v0.2.3"
__commit__ = "5a03a9e"
__version__ = "0.2.4.dev0+g2f2e096"
__commit__ = "2f2e096"

0 comments on commit 9d71bcd

Please sign in to comment.