Merge pull request #50 from hiero-ledger/did-improvements-issue-43 #27
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: Publish to PyPI | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/p/hiero-sdk-python | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: Upgrade pip | |
run: pip install --upgrade pip | |
- name: Install build, pdm-backend, and grpcio-tools | |
run: pip install build pdm-backend "grpcio-tools==1.68.1" | |
- name: Generate Protobuf | |
run: bash ./generate_proto.sh | |
- name: Build wheel and sdist | |
run: python -m build | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |