File tree Expand file tree Collapse file tree 1 file changed +16
-13
lines changed
Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -5,29 +5,32 @@ name: Upload Python Package
55
66on :
77 release :
8- types : [created]
8+ types : [published]
9+ workflow_dispatch :
910
1011jobs :
1112 deploy :
12-
13+ name : Upload release to PyPI
1314 runs-on : ubuntu-latest
14-
15+ environment :
16+ name : pypi
17+ url : https:/pypi.org/p/velociraptor
18+ permissions :
19+ id-token : write
1520 steps :
16- - uses : actions/checkout@v2
21+ - uses : actions/checkout@v4
1722 - name : Set up Python
18- uses : actions/setup-python@v2
23+ uses : actions/setup-python@v5
1924 with :
2025 python-version : ' 3.12'
2126 - name : Install dependencies
2227 run : |
2328 python -m pip install --upgrade pip
24- pip install wheel twine build
29+ pip install wheel build
2530 pip install -r requirements.txt
26- pip install -e .
27- - name : Build and publish
28- env :
29- TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
30- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
31+ pip install .
32+ - name : Build
3133 run : |
32- python -m build
33- twine upload dist/*
34+ pyproject-build
35+ - name : Publish package distributions to PyPI
36+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments