File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,14 +22,47 @@ jobs:
2222 needs : build
2323 uses : ewoks-kit/.github/.github/workflows/python-docs.yml@main
2424
25- # Publish package
26- publish :
27- uses : ewoks-kit/.github/.github/workflows/python-publish.yml@main
25+ # Publish package to TestPyPI
26+ publish-testpypi :
2827 needs :
28+ - build
2929 - tests
3030 - checks
3131 - docs
32- with :
33- twine-username : " __token__"
34- twine-password : ${{ secrets.PYPI_TOKEN }}
35- test-twine-password : ${{ secrets.TEST_PYPI_TOKEN }}
32+ - scripts
33+ runs-on : ubuntu-latest
34+ environment :
35+ name : release
36+ permissions :
37+ id-token : write
38+ steps :
39+ - uses : ewoks-kit/.github/.github/actions/setup-python-package@main
40+ - uses : pypa/gh-action-pypi-publish@release/v1
41+ with :
42+ repository-url : https://test.pypi.org/legacy/
43+
44+ # Publish package to PyPI
45+ publish-pypi :
46+ needs :
47+ - build
48+ - tests
49+ - checks
50+ - docs
51+ - scripts
52+ runs-on : ubuntu-latest
53+ environment :
54+ name : release
55+ permissions :
56+ id-token : write
57+ steps :
58+ - uses : ewoks-kit/.github/.github/actions/setup-python-package@main
59+ - uses : pypa/gh-action-pypi-publish@release/v1
60+
61+ # Tag
62+ tag-release :
63+ needs : publish-pypi
64+ runs-on : ubuntu-latest
65+ permissions :
66+ contents : write
67+ steps :
68+ - uses : ewoks-kit/.github/.github/actions/tag-release@main
File renamed without changes.
You can’t perform that action at this time.
0 commit comments