File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build distribution
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ test :
7
+ runs-on : " ubuntu-latest"
8
+
9
+ steps :
10
+ - name : Checkout source
11
+ uses : actions/checkout@v2
12
+
13
+ - name : Set up Python 3.8
14
+ uses : actions/setup-python@v1
15
+ with :
16
+ python-version : 3.8
17
+
18
+ - name : Install build dependencies
19
+ run : python -m pip install build wheel
20
+
21
+ - name : Build distributions
22
+ shell : bash -l {0}
23
+ run : python setup.py sdist bdist_wheel
24
+
25
+ - name : Publish package to PyPI
26
+ if : github.repository == 'ns1/ns1-python' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
27
+ uses : pypa/gh-action-pypi-publish@master
28
+ with :
29
+ user : __token__
30
+ password : ${{ secrets.ns1_python_publish }}
You can’t perform that action at this time.
0 commit comments