Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ permissions:
contents: read

jobs:
deploy:
deploy-mx-sdk-py-cli:

runs-on: ubuntu-latest

Expand All @@ -38,3 +38,32 @@ jobs:
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

deploy-mxpy:
runs-on: ubuntu-latest
needs: deploy-mx-sdk-py-cli # Ensure main package is published first

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build

- name: Change package name for mxpy
run: sed -i 's/name = "multiversx-sdk-cli"/name = "mxpy"/' pyproject.toml
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀


- name: Build and publish mxpy package
run: python -m build

- name: Publish mxpy package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
Loading