Skip to content

v1.1.8

v1.1.8 #40

Workflow file for this run

name: Python SDK publish
on:
release:
types: [published]
jobs:
publish-python-sdk:
name: Publish Python SDK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: yarn --ignore-scripts
name: Install dependencies
- run: yarn build
name: Build core package
working-directory: ./packages/core
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
working-directory: ./packages/sdk/python/human-protocol-sdk
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Set the relase version
uses: "DamianReeves/write-file-action@master"
with:
path: ./packages/sdk/python/human-protocol-sdk/human_protocol_sdk/__init__.py
write-mode: overwrite
contents: |
__version__ = "${{ github.event.release.tag_name }}"
- name: Build and publish
working-directory: ./packages/sdk/python/human-protocol-sdk
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
make publish-package