Skip to content

Commit

Permalink
Fixing version issue in release action (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheR1D authored Apr 6, 2024
1 parent 7b619e1 commit 6b0f59e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ jobs:
pip install
hatchling
--user
- name: Get ShellGPT version
run: echo "SGPT_VERSION=$(python3 -m hatchling version)" >> $GITHUB_ENV
- name: Build a binary wheel and a source tarball
run: python3 -m hatchling build
- name: Store the distribution packages
Expand Down Expand Up @@ -70,6 +68,10 @@ jobs:
with:
name: python-package-distributions
path: dist/
- name: Get ShellGPT version
run: >-
echo "SGPT_VERSION=$(find dist -type f -name '*.tar.gz' | grep -oP '\d+.\d+.\d+')" >> $GITHUB_ENV
echo "Release version $SGPT_VERSION"
- name: Sign the dists with Sigstore
uses: sigstore/[email protected]
with:
Expand Down

0 comments on commit 6b0f59e

Please sign in to comment.