v0.11.4 #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: gretel-trainer pypi push | |
on: | |
release: | |
types: [published] | |
jobs: | |
push: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9 | |
- name: Build wheel | |
run: | | |
pip install wheel | |
python setup.py sdist bdist_wheel | |
- name: Install wheel | |
run: pip install dist/gretel_trainer-*.whl | |
- name: Publish to Test PyPi | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
user: __token__ | |
password: ${{secrets.PY_PI_TEST}} | |
repository_url: https://test.pypi.org/legacy/ | |
- name: Publish PyPi | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
user: __token__ | |
password: ${{secrets.PY_PI_PROD}} |