Skip to content

Commit

Permalink
Add Github workflow for PyPI release. (#50)
Browse files Browse the repository at this point in the history
* Add Github workflow for PyPI release.

* Clean up workflow.

* Document changes in whatsnew.
  • Loading branch information
juseg committed Dec 16, 2022
1 parent f3c63c0 commit 16c1c18
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pypi.yaml
@@ -0,0 +1,25 @@
name: PyPI

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Build distributions
run: |
python -m pip install --upgrade build
python -m build
- name: Publish on PyPI
uses: pypa/gh-action-pypi-publish@v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
1 change: 1 addition & 0 deletions doc/whatsnew.rst
Expand Up @@ -45,6 +45,7 @@ Internal changes
- Add very simple tests for all plot methods (:issue:`37`, pull:`49`).
- Compute code coverage and upload to codecov.io (:issue:`38`, pull:`47`).
- Add docs, tests and codecov badges in readme file (:pull:`48`).
- Add automatic delivery on PyPI (:issue:`39`, :pull:`50`).

.. _v0.2.1:

Expand Down

0 comments on commit 16c1c18

Please sign in to comment.