-
Notifications
You must be signed in to change notification settings - Fork 189
55 lines (47 loc) · 1.37 KB
/
package.yaml
File metadata and controls
55 lines (47 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: build_push_pypi
on:
release:
types: [published]
workflow_dispatch:
# Allows manual triggering from GitHub UI
jobs:
build_and_upload:
name: build_push_pypi_packages
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.10"]
pip: [25.3]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install build tooling
run: |
python -m pip install --upgrade pip==${{ matrix.pip }}
pip install setuptools wheel twine
- name: Build packages in venv
shell: bash
run: |
make venv
if [ -f .venv/bin/activate ]; then
source .venv/bin/activate
elif [ -f venv/bin/activate ]; then
source venv/bin/activate
else
echo "No virtualenv activate script found"
exit 1
fi
make package_actions
- name: Upload dd_core, dd_datasets, deepdoctection to PyPI
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload \
packages/dd_core/dist/* \
packages/dd_datasets/dist/* \
packages/deepdoctection/dist/* \
--verbose -u __token__ -p "$PYPI_TOKEN"