File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish CredSpray to PyPI
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ permissions :
8+ contents : read
9+
10+ jobs :
11+ build-and-publish :
12+ name : Build and publish to PyPI
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout repository
17+ uses : actions/checkout@v4
18+
19+ - name : Set up Python
20+ uses : actions/setup-python@v5
21+ with :
22+ python-version : ' 3.x'
23+
24+ - name : Install build dependencies
25+ run : |
26+ python -m pip install --upgrade pip
27+ pip install build twine
28+
29+ - name : Build distribution packages
30+ run : python -m build
31+
32+ - name : Check distribution packages
33+ run : twine check dist/*
34+
35+ - name : Publish to PyPI
36+ env :
37+ TWINE_USERNAME : __token__
38+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
39+ run : |
40+ twine upload dist/*
You can’t perform that action at this time.
0 commit comments