Skip to content

Commit

Permalink
Added pip push
Browse files Browse the repository at this point in the history
  • Loading branch information
whitead committed Aug 6, 2022
1 parent 0e5ea63 commit 479808c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

name: publish

on:
release:
types:
- created
workflow_dispatch:

jobs:
publish:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python "3.8"
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r dev-requirements.txt; fi
- name: Install
run: |
pip install .
- name: Run Test
run: |
pytest tests
- name: Build a binary wheel and a source tarball
run: |
pip install build
python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 479808c

Please sign in to comment.