From 919e3ab39d3add6655a6c3d401eb573a9cc866ab Mon Sep 17 00:00:00 2001 From: SimoneGasperini Date: Mon, 15 May 2023 18:04:50 +0200 Subject: [PATCH] Setup GitHub Actions workflow to publish on pypi.org --- .github/workflows/python-publish.yml | 28 ++++++++++++++++++++++++++++ setup.cfg | 6 ++++-- 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/python-publish.yml diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..447c255 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,28 @@ +name: publish package + +on: + release: + types: [published] + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: "3.8" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/setup.cfg b/setup.cfg index 57d077f..ddeb66d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,11 +1,13 @@ [metadata] name = qiskit-symb -version = 0.1.0 +version = 0.1.1 url = https://github.com/SimoneGasperini/qiskit-symb author = SimoneGasperini author_email = simone.gasperini4@unibo.it license = Apache 2.0 -license_file = LICENSE +license_files = LICENSE +long_description_content_type = text/markdown +long_description = file: README.md [options] zip_safe = False