-
Notifications
You must be signed in to change notification settings - Fork 25
36 lines (33 loc) · 1020 Bytes
/
publish.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
# This workflow builds the Python package, and uploads to PyPI using Twine
name: Build & upload to PyPI
on:
release:
types: [created]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Make manylinux wheels
env:
target: manylinux2014_x86_64
run: |
docker run -e PLAT=${{ env.target }} \
-v ${{ github.workspace }}:/io \
quay.io/pypa/${{ env.target }} \
/io/.github/build-manylinux-wheels
- name: Install wheel publishing deps
run: |
python -m pip install --upgrade pip
pip install --upgrade twine
- env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m twine upload ./dist/*manylinux* ./dist/*.tar.gz