File tree Expand file tree Collapse file tree 2 files changed +31
-6
lines changed Expand file tree Collapse file tree 2 files changed +31
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : deploy-test
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v[0-9]+.[0-9]+.[0-9]+'
7
+
8
+ jobs :
9
+ deploy-job :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Check out repository code
13
+ uses : actions/checkout@v2
14
+ - name : Install Python
15
+ uses : actions/setup-python@v4
16
+ with :
17
+ python-version : ' 3.10'
18
+ - name : Install dependencies
19
+ run : |
20
+ python -m pip install twine build
21
+ python -m pip install -e .
22
+ - name : Build package
23
+ run : |
24
+ python -m build
25
+ python -m twine check dist/*
26
+ - name : Upload package to TestPyPI
27
+ run : |
28
+ python -m twine upload -r testpypi dist/* --verbose
29
+ env :
30
+ TWINE_USERNAME : ${{ secrets.TWINE_USERNAME_TEST }}
31
+ TWINE_PASSWORD : ${{ secrets.TWINE_PASSWORD_TEST }}
Original file line number Diff line number Diff line change 23
23
run : |
24
24
python -m build
25
25
python -m twine check dist/*
26
- - name : Upload package to TestPyPI
27
- run : |
28
- python -m twine upload -r testpypi dist/* --verbose
29
- env :
30
- TWINE_USERNAME : ${{ secrets.TWINE_USERNAME_TEST }}
31
- TWINE_PASSWORD : ${{ secrets.TWINE_PASSWORD_TEST }}
32
26
- name : Upload package to PyPI
33
27
run : |
34
28
python -m twine upload -r pypi dist/* --verbose
You can’t perform that action at this time.
0 commit comments