|
a |
|
b/.github/workflows/publish-to-pypi.yml |
|
|
1 |
name: pypi package |
|
|
2 |
|
|
|
3 |
on: workflow_dispatch |
|
|
4 |
|
|
|
5 |
jobs: |
|
|
6 |
build-n-publish: |
|
|
7 |
name: Build and publish Python 🐍 distributions 📦 to PyPI |
|
|
8 |
runs-on: ubuntu-20.04 |
|
|
9 |
|
|
|
10 |
steps: |
|
|
11 |
- uses: actions/checkout@master |
|
|
12 |
- name: Set up Python 3.8 |
|
|
13 |
uses: actions/setup-python@v1 |
|
|
14 |
with: |
|
|
15 |
python-version: 3.8 |
|
|
16 |
- name: Install libvips |
|
|
17 |
run: sudo apt-get install -y libvips |
|
|
18 |
- name: Install pypa/build |
|
|
19 |
run: >- |
|
|
20 |
python -m |
|
|
21 |
pip install -r requirements.txt |
|
|
22 |
--user |
|
|
23 |
- name: Initialize submodule |
|
|
24 |
run: >- |
|
|
25 |
git submodule init |
|
|
26 |
- name: Update submodule |
|
|
27 |
run: >- |
|
|
28 |
git submodule update --remote --recursive |
|
|
29 |
- name: Build a binary wheel |
|
|
30 |
run: >- |
|
|
31 |
python |
|
|
32 |
setup.py |
|
|
33 |
bdist_wheel |
|
|
34 |
- name: Publish distribution 📦 to PyPI |
|
|
35 |
uses: pypa/gh-action-pypi-publish@master |
|
|
36 |
with: |
|
|
37 |
password: ${{ secrets.PYPI_API_TOKEN }} |