Skip to content

Commit

Permalink
ci: validate the version in the publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joanise committed Nov 28, 2024
1 parent e3fe86a commit e03d7be
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ jobs:
python-version: "3.10"
- name: Install pypa/build
run: python3 -m pip install hatch
- name: Validate version consistency
run: |
echo github.ref_name="${{ github.ref_name }}"
echo EveryVoice version="$(hatch version)"
test "${{ github.ref_name }}" == "v$(hatch version)"
- name: Build a binary wheel and a source tarball
run: hatch build
- name: Store the distribution packages
Expand All @@ -42,8 +47,7 @@ jobs:

github-release:
name: >-
Sign the EveryVoice distribution 📦 with Sigstore
and upload them to GitHub Release
Make a GitHub release, signed with Sigstore
needs:
- build
runs-on: ubuntu-latest
Expand Down

0 comments on commit e03d7be

Please sign in to comment.