-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (34 loc) · 1.07 KB
/
build.yml
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
name: pdflib
on: [push, pull_request]
jobs:
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Show ref
run: |
echo "$GITHUB_REF"
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Build wheels and run tests using manylinux
env:
DOCKER_IMAGE: quay.io/pypa/manylinux2010_x86_64
run: |
docker pull $DOCKER_IMAGE
sudo chmod +x ./build-wheels/manylinux.sh
docker run --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/build-wheels/manylinux.sh
- name: Check the build artifacts and delete wheels from dependencies
run: |
cd wheelhouse/
sudo find . -type f ! -name 'pdflib*manylinux*.whl' -delete
ls .
cd ..
- name: Publish a Python distribution to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
packages_dir: wheelhouse/