File tree Expand file tree Collapse file tree 2 files changed +27
-30
lines changed
Expand file tree Collapse file tree 2 files changed +27
-30
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Tests
1+ name : CI
22
33on :
44 push :
55 branches : [main]
6+ tags : ["v*"]
67 pull_request :
78 branches : [main]
89
4849 fail_ci_if_error : false
4950 env :
5051 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
52+
53+ publish :
54+ if : startsWith(github.ref, 'refs/tags/v')
55+ needs : test
56+ runs-on : ubuntu-latest
57+ environment : pypi
58+ permissions :
59+ id-token : write
60+
61+ steps :
62+ - uses : actions/checkout@v4
63+
64+ - name : Set up Python
65+ uses : actions/setup-python@v5
66+ with :
67+ python-version : " 3.12"
68+
69+ - name : Install build tools
70+ run : pip install build
71+
72+ - name : Build package
73+ run : python -m build
74+
75+ - name : Publish to PyPI
76+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments