Skip to content

Commit

Permalink
Included python package publishing
Browse files Browse the repository at this point in the history
Signed-off-by: Anderson Ignacio <anderson@aignacio.com>
  • Loading branch information
aignacio committed Oct 27, 2023
1 parent d1945bf commit dbf68c1
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,23 @@ on:
- 'stable/**'

jobs:
deploy:
runs-on: ubuntu-latest
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install deps
run: >-
pip install -e .
- name: Install pypa/build
python-version: '3.10'
- name: Install pypa/setuptools
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
pip install wheel
- name: Build a binary wheel
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
python setup.py sdist bdist_wheel
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit dbf68c1

Please sign in to comment.