File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change 19
19
with :
20
20
python-version : " 3.x"
21
21
- name : Install pypa/build
22
- run : >-
23
- python3 -m
24
- pip install
25
- build
26
- --user
22
+ run : python3 -m pip install build --user
27
23
- name : Build a binary wheel and a source tarball
28
24
run : python3 -m build
29
25
- name : Store the distribution packages
@@ -34,24 +30,17 @@ jobs:
34
30
35
31
publish-to-testpypi :
36
32
name : Publish to TestPyPI
37
- needs :
38
- - build
33
+ needs : build
39
34
runs-on : ubuntu-latest
40
35
41
- environment :
42
- name : testpypi
43
- url : https://test.pypi.org/p/ltbams
44
-
45
- permissions :
46
- id-token : write # IMPORTANT: mandatory for trusted publishing
47
-
48
36
steps :
49
37
- name : Download all the dists
50
38
uses : actions/download-artifact@v4
51
39
with :
52
40
name : python-package-distributions
53
41
path : dist/
54
- - name : Publish distribution 📦 to TestPyPI
42
+ - name : Publish to TestPyPI
55
43
uses : pypa/gh-action-pypi-publish@release/v1
56
44
with :
57
45
repository-url : https://test.pypi.org/legacy/
46
+ password : ${{ secrets.TEST_PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments