File tree Expand file tree Collapse file tree 1 file changed +6
-39
lines changed Expand file tree Collapse file tree 1 file changed +6
-39
lines changed Original file line number Diff line number Diff line change @@ -24,44 +24,11 @@ jobs:
2424 with :
2525 submodules : recursive
2626
27- - name : Init poetry and python
28- uses : ./.github/actions/init- poetry
27+ - name : Build and publish to pypi
28+ uses :
JRubics/ poetry[email protected] 2929 with :
3030 python-version : " 3.10"
31- poetry-version : " 1.6.1"
32-
33- - name : Build package
34- shell : bash
35- run : |
36- poetry build
37-
38- - name : Store the distribution packages
39- uses : actions/upload-artifact@v4
40- with :
41- name : python-package-distributions
42- path : dist/
43-
44- # now we publish the release
45- publish-to-testpypi :
46- name : Publish Python distribution to TestPyPI
47- needs : build
48- runs-on : ubuntu-22.04
49-
50- environment :
51- name : testpypi
52- url : https://test.pypi.org/p/avstack-core
53-
54- permissions :
55- id-token : write # IMPORTANT: mandatory for trusted publishing
56-
57- steps :
58- - name : Download all the dists
59- uses : actions/download-artifact@v4
60- with :
61- name : python-package-distributions
62- path : dist/
63- - name : Publish distribution 📦 to TestPyPI
64- uses : pypa/gh-action-pypi-publish@release/v1
65- with :
66- repository-url : https://test.pypi.org/legacy/
67- verbose : true
31+ poetry-version : " ==1.6.1"
32+ pypi_token : ${{ secrets.TESTPYPI_API_TOKEN }}
33+ repository_name : " avstack-core"
34+ repository_url : " https://test.pypi.org/legacy/"
You can’t perform that action at this time.
0 commit comments