Skip to content

Commit

Permalink
pypi release
Browse files Browse the repository at this point in the history
  • Loading branch information
masci committed Dec 29, 2023
1 parent 4eaad83 commit 39c33b2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PyPI Release

on:
push:
tags:
- "v[0-9].[0-9]+.[0-9]+*"

jobs:
release-on-pypi:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Hatch
run: pip install hatch

- name: Build
run: hatch build

- name: Publish on PyPi
env:
HATCH_INDEX_USER: __token__
HATCH_INDEX_AUTH: ${{ secrets.PYPI_API_TOKEN }}
run: hatch publish -y

0 comments on commit 39c33b2

Please sign in to comment.