Skip to content

Commit

Permalink
Merge pull request #243 from j-c-cook/issue230_publishOnRelease
Browse files Browse the repository at this point in the history
Add upload to pypi step in workflow
  • Loading branch information
MassimoCimmino authored Dec 29, 2022
2 parents 8681246 + 2fd5fe9 commit 999f254
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release on PyPI

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -r requirements_dev.txt
python -m pip install build
- name: Build
run: python -m build

- name: Publish on PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_PASS_TOKEN }}

0 comments on commit 999f254

Please sign in to comment.