From 6b0f59ecc4c2f8ab0d67722e5301541ddbd5beae Mon Sep 17 00:00:00 2001 From: Farkhod Sadykov Date: Sat, 6 Apr 2024 18:42:23 +0200 Subject: [PATCH] Fixing version issue in release action (#536) --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 76e757a..3070d3b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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/gh-action-sigstore-python@v1.2.3 with: