Update workflow.yml #6
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: COINESPY deploy on PYPI | |
on: | |
push: | |
tags: | |
- 'COINES_SDK_v*' | |
jobs: | |
coinespy-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install twine | |
pip install -r coines-api/pc/python/requirements.txt | |
- name: Build and upload to PyPI | |
run: | | |
cd coines-api/pc/python | |
pip install --upgrade build | |
python -m build | |
twine upload --repository pypi -u __token__ -p ${{ secrets.BOSCHSENSORTEC }} dist/* --verbose | |
- name: Test installation from PyPI | |
run: | | |
pip install --upgrade coinespy | |
- name: Cleanup | |
run: | | |
rm -rf dist |