Support python 3.12 (#11) #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
permissions: | |
contents: write | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
- name: Install project | |
run: pip install -e . | |
- name: Install libraries | |
run: pip install -U build twine | |
- name: Create wheel | |
run: python -m build -o dist/ . | |
- name: Upload wheel | |
run: twine upload -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --non-interactive "dist/*" | |
- name: Determine version | |
run: | | |
tag="${GITHUB_REF#refs/*/}" | |
version="${tag:1}" | |
echo "RELEASE_VERSION=${version}" >> $GITHUB_ENV | |
- name: Release on GitHub | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: dist/* | |
name: Version ${{ env.RELEASE_VERSION }} |