Skip to content

Plato v1.0

Plato v1.0 #22

Workflow file for this run

# This workflows will upload a Python Package using Twine when a release is created.
name: Upload the Plato Python Package to PyPI
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install build dependencies
run: |
python -m pip install pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
rm -rf dist/
pip wheel . -w dist
twine upload --repository testpypi dist/plato_learn*
twine upload --repository pypi dist/plato_learn*