Release v0.7.0 #7
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: Publish to PyPI | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
name: Build dist & publish | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up uv | |
run: curl -LsSf https://astral.sh/uv/0.3.5/install.sh | sh | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: "pyproject.toml" | |
- name: Build package | |
run: uvx --from build pyproject-build --installer uv | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1.9 | |
with: | |
user: __token__ | |
password: ${{ secrets.pypi_api_token }} | |
- name: Upload wheel to release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | |
gh release upload ${{ github.event.release.tag_name }} ./dist/pyflysight-*.whl |