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
+ # my twine key is in
2
+ # TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
3
+
4
+ name : Publish brightest to PyPi (cudmore)
5
+
6
+ on :
7
+ workflow_run :
8
+ workflows : ["Release (cudmore)"]
9
+ types : [completed]
10
+ # branches: [master]
11
+
12
+ jobs :
13
+ deploy :
14
+ # this will run when you have tagged a commit, starting with "v*"
15
+ # and requires that you have put your twine API key in your
16
+ # github secrets (see readme for details)
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - name : Checkout source (cudmore)
20
+ uses : actions/checkout@v3
21
+ with :
22
+ fetch-depth : 0 # needed so setuptools_scm can get tags
23
+ - name : Set up Python (cudmore)
24
+ uses : actions/setup-python@v4
25
+ with :
26
+ python-version : " 3.x"
27
+ - name : Install dependencies (cudmore)
28
+ run : |
29
+ python -m pip install --upgrade pip
30
+ pip install -U setuptools wheel twine build
31
+ #pip install -U '.[gui]'
32
+ pip install -U .
33
+ - name : Build and publish (cudmore)
34
+ env :
35
+ TWINE_USERNAME : __token__
36
+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
37
+ run : |
38
+ git tag
39
+ #python setup.py --version
40
+ python -m build .
41
+ twine upload dist/*
You can’t perform that action at this time.
0 commit comments