File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Upload package to PyPI
2
+
3
+ on :
4
+ release :
5
+ types : [created]
6
+
7
+ jobs :
8
+ publish :
9
+ name : Publish to PyPI
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - name : Set up Python
14
+ uses : actions/setup-python@v1
15
+ with :
16
+ python-version : ' 3.x'
17
+ - name : Install dependencies
18
+ run : |
19
+ python -m pip install --upgrade pip build twine
20
+ - name : Build
21
+ run : |
22
+ python -m build --sdist --wheel --outdir dist/ .
23
+ - name : Check the built archives
24
+ run : |
25
+ twine check dist/*
26
+ - name : Publish to PyPI
27
+ uses : pypa/gh-action-pypi-publish@54b39fb9371c0b3a6f9f14bb8a67394defc7a806
28
+ with :
29
+ user : __token__
30
+ password : ${{ secrets.pypi_token }}
31
+ repository_url : https://upload.pypi.org/legacy/
32
+ verify_metadata : true
You can’t perform that action at this time.
0 commit comments