File tree Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 11
11
uses : actions/checkout@v4
12
12
- name : Install dependencies
13
13
run : pip install pycodestyle pylint
14
- - name : Run linters
14
+ - name : Run linting
15
15
run : make lint
Original file line number Diff line number Diff line change
1
+ name : Publish Package to PyPI
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *.*.*'
7
+
8
+ jobs :
9
+ publish :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout code
13
+ uses : actions/checkout@v4
14
+ - name : Set up Python
15
+ uses : actions/setup-python@v5
16
+ with :
17
+ python-version : ' 3.12'
18
+ - name : Install dependencies
19
+ run : |
20
+ python -m pip install --upgrade pip
21
+ pip install setuptools wheel twine
22
+ - name : Build package
23
+ run : |
24
+ python setup.py sdist bdist_wheel
25
+ - name : Upload package to PyPI
26
+ run : |
27
+ twine upload dist/*
28
+ env :
29
+ TWINE_USERNAME : __token__
30
+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments