Skip to content

Commit

Permalink
Add Pypi release workflow to CI (#1146)
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Jun 1, 2024
1 parent 30ee26a commit cf7d2df
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release

on:
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: 3.x

- run: pipx run build

- run: twine check --strict dist/*

- run: pipx run twine upload dist/* --disable-progress-bar
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit cf7d2df

Please sign in to comment.