Skip to content

Commit

Permalink
test gh release 2
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidcarbon authored Sep 4, 2024
1 parent a001f28 commit 5fdc615
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 5fdc615

Please sign in to comment.