Use pre-commit-hook-nitpick (#159)
#10
This file contains hidden or 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: push | ||
| "on": | ||
| push: | ||
| branches: | ||
| - master | ||
| jobs: | ||
| tag: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Tag latest commit | ||
| uses: dycw/action-tag-commit@latest | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| publish: | ||
| environment: | ||
| name: pypi | ||
| needs: | ||
| - tag | ||
| permissions: | ||
| id-write: write | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Check out repository | ||
| uses: actions/checkout@v6 | ||
| - name: Install 'uv' | ||
| uses: astral-sh/setup-uv@7 | ||
| with: | ||
| enable-cache: true | ||
| - name: Build Python package | ||
| run: uv build | ||
| - name: Upload distribution | ||
| run: uv publish --trusted-publishing always | ||