Update SDK using contracts version ebe0d913f3a2753599c4ff2e6d5c8ba1ce… #1764
Workflow file for this run
This file contains hidden or 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: Upload to PyPi | |
| on: [ push ] | |
| jobs: | |
| upload-pypi: | |
| if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
| runs-on: ubuntu-latest | |
| container: | |
| image: python:alpine | |
| steps: | |
| - name: Install | |
| run: | | |
| apk -U add git libffi-dev libressl-dev | |
| pip install setuptools wheel cryptography twine | |
| git config --global --add safe.directory $(pwd) | |
| - name: Clone | |
| uses: actions/checkout@v2 | |
| - name: Upload | |
| env: | |
| TWINE_USERNAME: "__token__" | |
| TWINE_PASSWORD: "${{ secrets.pypi_token }}" | |
| run: | | |
| export RELEASE_VERSION=${GITHUB_REF#refs/tags/} | |
| python setup.py sdist bdist_wheel && \ | |
| python -m twine upload dist/* |