[78ef36]: / .github / workflows / publish-to-pypi.yml

Download this file

38 lines (34 with data), 927 Bytes

 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
name: pypi package
on: workflow_dispatch
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install libvips
run: sudo apt-get install -y libvips
- name: Install pypa/build
run: >-
python -m
pip install -r requirements.txt
--user
- name: Initialize submodule
run: >-
git submodule init
- name: Update submodule
run: >-
git submodule update --remote --recursive
- name: Build a binary wheel
run: >-
python
setup.py
bdist_wheel
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}