File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ permissions:
1717 contents : read
1818
1919jobs :
20- deploy :
20+ deploy-mx-sdk-py-cli :
2121
2222 runs-on : ubuntu-latest
2323
3838 with :
3939 user : __token__
4040 password : ${{ secrets.PYPI_API_TOKEN }}
41+
42+ deploy-mxpy :
43+ runs-on : ubuntu-latest
44+ needs : deploy-mx-sdk-py-cli # Ensure main package is published first
45+
46+ steps :
47+ - uses : actions/checkout@v3
48+
49+ - name : Set up Python
50+ uses : actions/setup-python@v3
51+ with :
52+ python-version : ' 3.x'
53+
54+ - name : Install dependencies
55+ run : |
56+ python -m pip install --upgrade pip
57+ pip install build
58+
59+ - name : Change package name for mxpy
60+ run : sed -i 's/name = "multiversx-sdk-cli"/name = "mxpy"/' pyproject.toml
61+
62+ - name : Build and publish mxpy package
63+ run : python -m build
64+
65+ - name : Publish mxpy package
66+ uses : pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
67+ with :
68+ user : __token__
69+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments