21
- name: "Install build dependencies"
23
sudo apt-get install -y gettext
21
25
- name: "Set up Python"
22
26
uses: actions/setup-python@v1
24
28
python-version: 3.9
30
- name: "Install Python build dependencies"
34
- name: "Compile locales"
36
nox -s locales_compile
26
38
- name: "Build source distribution"
28
40
python setup.py sdist
30
- name: "Upload artifacts"
31
uses: actions/upload-artifact@v2
33
name: yoga-image-optimizer-sdist
41
python-version: [cp37-cp37m, cp38-cp38, cp39-cp39]
43
name: "Wheel for ${{ matrix.python-version }} manylinux2010"
44
runs-on: ubuntu-latest
48
- name: "Checkout the repository"
49
uses: actions/checkout@v2
51
- name: "Build Python Wheel for Linux (manylinux2010)"
52
uses: RalfG/python-wheels-manylinux-build@v0.3.3-manylinux2010_x86_64
54
python-versions: ${{ matrix.python-version }}
55
build-requirements: cffi>=1.0.0
57
- name: "Upload artifacts"
58
uses: actions/upload-artifact@v2
60
name: yoga-image-optimizer-wheel-linux
61
path: dist/*manylinux*.whl
68
python-version: [3.7, 3.8, 3.9]
70
name: "Wheel for py${{ matrix.python-version }} win amd64"
71
runs-on: windows-latest
75
- name: "Checkout the repository"
76
uses: actions/checkout@v2
80
- name: "Set up Python ${{ matrix.python-version }}"
81
uses: actions/setup-python@v1
83
python-version: ${{ matrix.python-version }}
85
- name: "Install Python dependencies"
89
- name: "Build Python Wheel"
91
44
python setup.py bdist_wheel
93
46
- name: "Upload artifacts"
94
47
uses: actions/upload-artifact@v2
96
name: yoga-image-optimizer-wheel-windows
49
name: yoga-image-optimizer-dist
114
65
- name: "Move packages to the dist/ folder"
117
mv yoga-image-optimizer-sdist/* dist/
118
mv yoga-image-optimizer-wheel-*/*.whl dist/
68
mv yoga-image-optimizer-dist/* dist/
120
70
- name: "Publish packages on PyPI"
121
71
uses: pypa/gh-action-pypi-publish@release/v1