File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
+
4
+ name : PyPI CD
5
+
6
+ on :
7
+ release :
8
+ types : [published]
9
+ workflow_dispatch :
10
+
11
+ jobs :
12
+ publish :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ - name : Set up Python
17
+ uses : actions/setup-python@v2
18
+ with :
19
+ python-version : ' 3.8'
20
+ - name : Install dependencies
21
+ run : |
22
+ python -m pip install --upgrade pip
23
+ pip install setuptools wheel build twine
24
+ pip install -r requirements.txt
25
+ - name : Build and publish
26
+ env :
27
+ TWINE_USERNAME : __token__
28
+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
29
+ run : twine upload --verbose dist/ocrd*${{ github.ref_name }}*{tar.gz,whl}
You can’t perform that action at this time.
0 commit comments