Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptobench committed Nov 26, 2024
1 parent b2febb8 commit da46234
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ jobs:
- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install build twine
pip install build twine tomli
- name: Get git release tag
run: echo "git-release-tag=golem-cert-companion $(git describe --tags)" >> $GITHUB_OUTPUT
id: git_describe

- name: Get package version
run: |
VERSION=$(python -c "from configparser import ConfigParser; p = ConfigParser(); p.read('pyproject.toml'); print(p['project']['version'])")
echo "package-version=golem-cert-companion $VERSION" >> $GITHUB_OUTPUT
VERSION=$(python -c "import tomli; print('golem-cert-companion ' + tomli.load(open('pyproject.toml', 'rb'))['project']['version'])")
echo "package-version=$VERSION" >> $GITHUB_OUTPUT
id: package_version

- name: Fail on version mismatch
Expand Down

0 comments on commit da46234

Please sign in to comment.