File tree 3 files changed +53
-0
lines changed
3 files changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ github : Techtonique
Original file line number Diff line number Diff line change
1
+ * nnetsauce version:
2
+ * Python version:
3
+ * Operating System:
4
+
5
+ ### Description
6
+
7
+ Describe what you were trying to get done.
8
+ Tell us what happened, what went wrong, and what you expected to happen.
9
+
10
+ ### What I Did
11
+
12
+ ```
13
+ Paste the command(s) you ran and the output.
14
+ If there was a crash, please include the traceback here.
15
+ ```
Original file line number Diff line number Diff line change
1
+ name : Publish Python 🐍 distribution 📦 to PyPI
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ branches :
7
+ - main # Replace with your branch name
8
+
9
+ jobs :
10
+ publish :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - name : Checkout code
15
+ uses : actions/checkout@v2
16
+
17
+ - name : Set up Python
18
+ uses : actions/setup-python@v2
19
+ with :
20
+ python-version : ' 3.x' # Replace with your Python version
21
+
22
+ - name : Install dependencies
23
+ run : |
24
+ python -m pip install --upgrade pip
25
+ pip install wheel setuptools twine
26
+
27
+ - name : Build distribution
28
+ run : python setup.py sdist bdist_wheel
29
+
30
+ - name : Run examples
31
+ run : pip install .&&find examples -maxdepth 2 -name "*.py" -exec python3 {} \;
32
+
33
+ - name : Publish to PyPI
34
+ uses : pypa/gh-action-pypi-publish@release/v1
35
+ with :
36
+ password : ${{ secrets.PYPI_GLOBAL }}
37
+ repository-url : https://upload.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments