Skip to content

Commit

Permalink
Merge pull request #23 from LauraMeneghetti/pypi_action
Browse files Browse the repository at this point in the history
Github action for PyPI
  • Loading branch information
ndem0 authored Oct 21, 2021
2 parents c6cf35e + d57ab70 commit fa28999
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pypi_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "PYPI Publish"

on:
push:
tags:
- "*"

jobs:
docs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2

- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7

- name: Install build
run: >-
python -m pip install build --user
- name: Build a binary wheel and a source tarball
run: >-
python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit fa28999

Please sign in to comment.