From 5fdc6152b534016080dc2e4fc4cf24678e892aa1 Mon Sep 17 00:00:00 2001 From: Alexander Kislukhin <47034358+liquidcarbon@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:25:26 -0600 Subject: [PATCH] test gh release 2 --- .github/workflows/release.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d5c87c0..73e73ca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,14 +20,9 @@ jobs: - name: Build the wheel run: hatch build - - name: Extract version from pyproject.toml - id: extract_version - run: | - VERSION=$(python -c "import toml; print(toml.load('pyproject.toml')['project']['version'])") - echo "VERSION=$VERSION" >> $GITHUB_ENV - - name: Create a Release run: | - gh release create ${{ env.VERSION }} dist/affinity-*.whl --title "Release ${{ env.VERSION }}" + RELEASE_DATE=$(date +'%Y-%m-%d') + gh release create "v${RELEASE_DATE}" dist/affinity-*.whl --title "Release ${RELEASE_DATE}" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file