Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Nov 28, 2024
1 parent c4f3068 commit 608249f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ jobs:
- name: Check version tag
run: |
ver=$(python -c "from tomllib import load;p=load(open('pyproject.toml','rb'));print(p['project']['version'])")
errormsg="tag '${{ github.ref_name }}' does not match version '$ver' from pyproject.toml"
errormsg="tag version '${{ github.ref_name }}' != v'$ver' specified in pyproject.toml"
if [ "v${ver}" != "${{ github.ref_name }}" ]; then echo "$errormsg"; exit 1; fi
dist:
name: Distribution build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -90,7 +89,7 @@ jobs:

pypi-publish:
name: Publish release to PyPI
needs: [dist, check-version]
needs: [dist, check-release-tag]
if: >-
github.repository == 'aiidateam/aiida-test-cache' &&
github.event_name == 'push' &&
Expand Down

0 comments on commit 608249f

Please sign in to comment.