Skip to content

Commit

Permalink
test release with gh
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidcarbon authored Sep 4, 2024
1 parent a6261b0 commit a001f28
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,14 @@ jobs:
- name: Build the wheel
run: hatch build

- name: Upload the wheel as an artifact
uses: actions/upload-artifact@v4
with:
name: python-wheel
path: dist/*.whl
- 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 }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a001f28

Please sign in to comment.