File tree 1 file changed +18
-8
lines changed
1 file changed +18
-8
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
pypi :
10
10
runs-on : ubuntu-latest
11
+ environment :
12
+ name : pypi
13
+ url : https://pypi.org/project/picobox/${{ github.ref_name }}/
14
+ permissions :
15
+ id-token : write
11
16
steps :
12
17
- name : Checkout
13
18
uses : actions/checkout@v4
14
19
15
- - name : Prepare artifacts
16
- run : |
17
- pipx run -- hatch build
20
+ - name : Setup Python
21
+ uses : actions/setup-python@v5
22
+ with :
23
+ python-version : " 3.13"
24
+
25
+ - name : Setup build dependencies
26
+ run : pip install build
27
+
28
+ - name : Build package
29
+ run : python -m build
18
30
19
31
- name : Publish to PyPI
20
- env :
21
- TWINE_USERNAME : __token__
22
- TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
23
- run : |
24
- pipx run -- twine upload dist/*
32
+ uses : pypa/gh-action-pypi-publish@93e87954aa8d40d7467c30656ba421aee00d37c8
33
+ with :
34
+ print-hash : true
You can’t perform that action at this time.
0 commit comments