-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (39 loc) · 1.11 KB
/
deploy.yaml
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
name: Deploy
on: [workflow_dispatch]
jobs:
deploy:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [macos-13, ubuntu-latest, windows-latest]
runs-on: ubuntu-latest
steps:
- name: Fetch
# Use official download-artifact action once fixed:
# https://github.com/actions/download-artifact/issues/3
uses: dawidd6/action-download-artifact@v2
with:
workflow: cmake.yml
name: zswag-py${{ matrix.python-version }}-${{ matrix.os }}
path: dist/
- name: Upload
env:
KE_PYPI_TOKEN: ${{ secrets.KE_PYPI_TOKEN }}
run: |
echo "Initial state:"
echo "=============="
cd dist/
ls .
echo "Uploading..."
echo "============"
python3 -m venv venv
. venv/bin/activate
pip install twine
twine upload \
--non-interactive \
--skip-existing \
--verbose \
--disable-progress-bar \
-u "__token__" \
-p "${KE_PYPI_TOKEN}" \
*.whl