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 : " [DO NOT TRIGGER] Publish to PyPI"
2
+
3
+ on :
4
+ # To run this workflow manually from the Actions tab
5
+ workflow_dispatch :
6
+
7
+ jobs :
8
+ build-n-publish :
9
+ name : Build and publish Python 🐍 distribution 📦 to PyPI
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - name : Set up Python
15
+ uses : actions/setup-python@v4
16
+ with :
17
+ python-version : " 3.x"
18
+ - name : Build distribution 📦
19
+ run : |
20
+ make dist
21
+ - name : Validate
22
+ run : |
23
+ pip install dist/*.whl
24
+ python -c "import ads;"
25
+ - name : Publish distribution 📦 to Test PyPI
26
+ env :
27
+ TWINE_USERNAME : __token__
28
+ TWINE_PASSWORD : ${{ secrets.GH_ADS_TESTPYPI_TOKEN }}
29
+ run : |
30
+ twine upload -r testpypi dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD
You can’t perform that action at this time.
0 commit comments