File tree 1 file changed +16
-13
lines changed
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
5
5
6
6
on :
7
7
release :
8
- types : [created]
8
+ types : [published]
9
+ workflow_dispatch :
9
10
10
11
jobs :
11
12
deploy :
12
-
13
+ name : Upload release to PyPI
13
14
runs-on : ubuntu-latest
14
-
15
+ environment :
16
+ name : pypi
17
+ url : https:/pypi.org/p/velociraptor
18
+ permissions :
19
+ id-token : write
15
20
steps :
16
- - uses : actions/checkout@v2
21
+ - uses : actions/checkout@v4
17
22
- name : Set up Python
18
- uses : actions/setup-python@v2
23
+ uses : actions/setup-python@v5
19
24
with :
20
25
python-version : ' 3.12'
21
26
- name : Install dependencies
22
27
run : |
23
28
python -m pip install --upgrade pip
24
- pip install wheel twine build
29
+ pip install wheel build
25
30
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
31
33
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