Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GiorgioBonardi authored May 25, 2023
1 parent 141e43b commit 0eaa178
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Upload Package

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.7'

- name: Install dependencies
run: |
pip install --upgrade setuptools wheel twine
- name: Build package
run: python setup.py bdist_wheel --plat-name manylinux2014_x86_64

- name: Publish to PyPI
run: |
pip install twine
twine upload dist/*.whl
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 0eaa178

Please sign in to comment.