File tree Expand file tree Collapse file tree 1 file changed +9
-19
lines changed Expand file tree Collapse file tree 1 file changed +9
-19
lines changed Original file line number Diff line number Diff line change @@ -83,17 +83,10 @@ jobs:
8383 timeout-minutes : 5
8484 steps :
8585 - uses : actions/checkout@v4
86- - name : Setup Python
87- uses : actions/setup-python@v5
88- with :
89- python-version : " 3.12"
90- cache : " pip"
91- cache-dependency-path : " pyproject.toml"
92- - name : Install dependencies
93- run : |
94- python -m pip install hatch
86+ - name : Install uv
87+ uses : astral-sh/setup-uv@v5
9588 - name : Package
96- run : python -m hatch build
89+ run : uv build
9790 - name : Upload dist
9891 uses : actions/upload-artifact@v4
9992 with :
@@ -105,6 +98,10 @@ jobs:
10598 needs : [package, tests, lint]
10699 if : startsWith(github.ref, 'refs/tags/v')
107100 timeout-minutes : 5
101+ environment : release
102+ permissions :
103+ id-token : write
104+ contents : write
108105 steps :
109106 - uses : actions/checkout@v4
110107 - name : Set release env
@@ -129,15 +126,8 @@ jobs:
129126 with :
130127 name : dist
131128 path : dist
132- - name : Install dependencies
133- run : |
134- python -m pip install twine
135- - name : Publish
136- env :
137- TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
138- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
139- run : |
140- twine upload dist/*
129+ - name : Publish package distributions to PyPI
130+ uses : pypa/gh-action-pypi-publish@release/v1
141131 - name : Create Release
142132 id : create_release
143133 uses : softprops/action-gh-release@v2
You can’t perform that action at this time.
0 commit comments