v0.0.53 #53
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 | |
on: | |
release: | |
types: [published] | |
env: | |
PYTHON_VERSION: "3.11" | |
jobs: | |
release: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install Hatch | |
run: python3 -m pip install hatch | |
- name: Install dependencies | |
run: hatch build | |
- name: Publish to PyPi | |
if: "startsWith(github.ref, 'refs/tags/')" | |
env: | |
HATCH_INDEX_USER: __token__ | |
HATCH_INDEX_AUTH: ${{ secrets.RUFF_LSP_TOKEN }} | |
run: | | |
hatch publish |