dn-scribe commited on
Commit
b2d2b91
·
1 Parent(s): 12e0747

ci: try fixing version recording

Browse files
.github/workflows/build-and-push.yaml CHANGED
@@ -44,7 +44,10 @@ jobs:
44
  run: pip install python-semantic-release
45
 
46
  - name: Run semantic-release
47
- run: semantic-release version
 
 
 
48
  env:
49
  GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50
 
 
44
  run: pip install python-semantic-release
45
 
46
  - name: Run semantic-release
47
+ run: |
48
+ git config --global user.name "github-actions"
49
+ git config --global user.email "github-actions@github.com"
50
+ semantic-release version
51
  env:
52
  GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53
 
.python-semantic-release.yml CHANGED
@@ -1,5 +1,9 @@
1
- version_variable: version.py:__version__
 
 
2
  changelog_file: CHANGELOG.md
3
  upload_to_pypi: false
 
 
4
  branches:
5
  - main
 
1
+ version_variable:
2
+ - version.py:__version__
3
+ - pyproject.toml:project.version
4
  changelog_file: CHANGELOG.md
5
  upload_to_pypi: false
6
+ build_command: false
7
+ commit_version_number: true
8
  branches:
9
  - main
version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.0"
 
1
+ __version__ = "1.0.0"