Skip to content

Commit b42d61b

Browse files
authored
Merge pull request #502 from multiversx/update-publish-workflow-mxpy
Update publish workflow to publish package to mxpy
2 parents aea58b6 + 4b2b90c commit b42d61b

1 file changed

Lines changed: 30 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717
contents: read
1818

1919
jobs:
20-
deploy:
20+
deploy-mx-sdk-py-cli:
2121

2222
runs-on: ubuntu-latest
2323

@@ -38,3 +38,32 @@ jobs:
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 }}

0 commit comments

Comments
 (0)