Skip to content

Commit

Permalink
Setup GitHub Actions workflow to publish on pypi.org
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneGasperini committed May 15, 2023
1 parent 9bc79ac commit 919e3ab
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}
6 changes: 4 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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 = [email protected]
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
Expand Down

0 comments on commit 919e3ab

Please sign in to comment.