File tree 1 file changed +41
-0
lines changed
1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Package
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ defaults :
8
+ run :
9
+ shell : bash -l {0}
10
+
11
+ jobs :
12
+ deploy :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v2
17
+
18
+ - name : Install node
19
+ uses : actions/setup-node@v1
20
+ with :
21
+ node-version : ' 13.x'
22
+ registry-url : ' https://registry.npmjs.org'
23
+
24
+ - name : Install Python
25
+ uses : actions/setup-python@v2
26
+ with :
27
+ python-version : ' 3.x'
28
+
29
+ - name : Install dependencies
30
+ run : |
31
+ python -m pip install --upgrade pip
32
+ pip install build twine jupyter-packaging
33
+
34
+ - name : Build package
35
+ run : python -m build
36
+
37
+ - name : Publish the Python package
38
+ env :
39
+ TWINE_USERNAME : __token__
40
+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
41
+ run : twine upload dist/*
You can’t perform that action at this time.
0 commit comments