File tree Expand file tree Collapse file tree 1 file changed +7
-22
lines changed Expand file tree Collapse file tree 1 file changed +7
-22
lines changed Original file line number Diff line number Diff line change @@ -36,26 +36,11 @@ jobs:
3636 deploy :
3737 runs-on : ubuntu-latest
3838 needs : [tests]
39+ environment :
40+ name : pypi
41+ url : https://pypi.org/p/crispy-bootstrap5
42+ permissions :
43+ id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
3944 steps :
40- - uses : actions/checkout@v2
41- - name : Set up Python
42- uses : actions/setup-python@v2
43- with :
44- python-version : " 3.10"
45- - uses : actions/cache@v2
46- name : Configure pip caching
47- with :
48- path : ~/.cache/pip
49- key : ${{ runner.os }}-publish-pip-${{ hashFiles('**/setup.py') }}
50- restore-keys : |
51- ${{ runner.os }}-publish-pip-
52- - name : Install dependencies
53- run : |
54- pip install build twine
55- - name : Publish
56- env :
57- TWINE_USERNAME : __token__
58- TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
59- run : |
60- python -m build
61- twine upload dist/*
45+ - name : Publish package distributions to PyPI
46+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments