-
Notifications
You must be signed in to change notification settings - Fork 118
36 lines (36 loc) · 1.08 KB
/
publish-to-pypi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"name": "Release to PyPI",
"on": {
"push": {
"tags": [ "v*.*" ]
},
},
"jobs": {
"pypi": {
"name": "Publish Release",
"runs-on": "ubuntu-latest",
"steps": [
{ "uses": "actions/checkout@v2" },
{
"uses": "actions/setup-python@v2",
"with": {
"python-version": "3.10"
},
},
{ "run": "sudo apt-get update" },
{ "run": "sudo apt-get install cargo" },
{ "run": "pip --version" },
{ "run": "python setup.py sdist" },
{ "run": "python setup.py bdist_wheel" },
{
"uses": "pypa/gh-action-pypi-publish@release/v1",
"with": {
"user": "__token__",
"password": "${{secrets.PYPI_API_TOKEN}}",
"skip-existing": true,
},
},
],
},
},
}