File tree 1 file changed +17
-11
lines changed
1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,16 @@ jobs:
10
10
name : " Upload latest msgpack-cxx version to PyPI"
11
11
runs-on : ubuntu-latest
12
12
permissions :
13
- contents : read
14
- env :
15
- TWINE_USERNAME : ${{ secrets.PYPI_USER }}
16
- TWINE_PASSWORD : ${{ secrets.PYPI_PASS }}
13
+ contents : write
14
+ id-token : write # Required for Trusted Publishing
17
15
18
16
steps :
19
17
- uses : actions/checkout@v4
20
18
21
19
- name : Setup python
22
20
uses : actions/setup-python@v5
23
21
with :
24
- python-version : " 3.11 "
22
+ python-version : " 3.13 "
25
23
architecture : x64
26
24
27
25
- name : Install dependencies
67
65
- name : List assets
68
66
run : ls ./wheelhouse/ -al
69
67
70
- - name : Upload wheels
71
- if : github.event_name == 'workflow_dispatch'
72
- run : |
73
- pip install twine
74
- echo "Publish to PyPI..."
75
- twine upload --verbose wheelhouse/*
68
+ - name : Upload assets to PyPI
69
+ uses : pypa/gh-action-pypi-publish@release/v1
70
+ with :
71
+ # To test, use the TestPyPI:
72
+ # repository-url: https://test.pypi.org/legacy/
73
+ # You must also create an account and project on TestPyPI,
74
+ # as well as set the trusted-publisher in the project settings:
75
+ # https://docs.pypi.org/trusted-publishers/adding-a-publisher/
76
+ # To publish to the official PyPI repository, just keep
77
+ # repository-url commented out.
78
+ packages-dir : wheelhouse
79
+ skip-existing : true
80
+ print-hash : true
81
+ verbose : true
You can’t perform that action at this time.
0 commit comments