Skip to content

Commit

Permalink
Add PyPi workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobRoyce committed Aug 10, 2024
1 parent 3b75091 commit 958b1c9
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish jpl-rosa to PyPI

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '>=3.9 <4.0'

- name: Install dependencies
run: pip install setuptools wheel twine

- name: Build package
run: python setup.py sdist bdist_wheel

- name: Publish package
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/*

0 comments on commit 958b1c9

Please sign in to comment.