Skip to content

Commit

Permalink
Merge pull request #4 from BlueBrain/zisis/add-publish-sdist
Browse files Browse the repository at this point in the history
Add publish-sdist job
  • Loading branch information
eleftherioszisis committed Feb 15, 2022
2 parents 9131964 + 1dda38e commit 6314bd7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish-sdist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish sdist tarball to PyPi

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
build-n-publish:
name: Build and publish on PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Build a source tarball
run:
python setup.py sdist

- name: Publish distribution package to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"

0 comments on commit 6314bd7

Please sign in to comment.