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