Skip to content

Commit e170f0a

Browse files
authored
Setup wheel building workflow for Actions
1 parent d767917 commit e170f0a

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/main.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Python package build and publish
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.8
17+
- name: Build manylinux Python wheels
18+
uses: RalfG/[email protected]_x86_64
19+
with:
20+
python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39'
21+
build-requirements: 'scikit-build'
22+
system-packages: 'python3-tkinter cmake gcc gcc-c++ make tcl tcl-devel tk tk-devel'
23+
package-path: '.'
24+
- name: Create Release
25+
uses: ncipollo/release-action@v1
26+
with:
27+
allowUpdates: true
28+
omitBody: true
29+
token: ${{ secrets.DEPLOY_TOKEN }}
30+
- name: Upload binaries to release
31+
uses: svenstaro/upload-release-action@v2
32+
with:
33+
repo_token: ${{ secrets.DEPLOY_TOKEN }}
34+
file: dist/*-manylinux*.whl
35+
tag: ${{ github.ref }}
36+
overwrite: true
37+
38+
file_glob: true

0 commit comments

Comments
 (0)