File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will release to PyPi
2+
3+ name : Release to PyPi
4+
5+ on :
6+ release :
7+ types : [published]
8+ workflow_dispatch :
9+
10+ permissions :
11+ contents : read
12+
13+ jobs :
14+ pypi-publish :
15+ name : upload release to PyPI
16+ runs-on : ubuntu-latest
17+ permissions :
18+ id-token : write
19+ steps :
20+ - name : Check out code
21+ uses : actions/checkout@v3
22+
23+ - name : Set up Python
24+ uses : actions/setup-python@v2
25+ with :
26+ python-version : ' 3.x'
27+
28+ - name : Install dependencies
29+ run : |
30+ python -m pip install --upgrade pip
31+ pip install setuptools wheel twine
32+
33+ - name : Build and check Python distributions
34+ run : |
35+ python setup.py sdist bdist_wheel
36+ twine check dist/*
37+
38+ - name : Publish package distributions to PyPI
39+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments