build!: Rename the PyPI project to openedx-core
#79
Workflow file for this run
This file contains hidden or 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 package to PyPI | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| jobs: | |
| push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: setup python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.11 | |
| - name: Install pip | |
| run: pip install -r requirements/pip.txt | |
| - name: Build the package (openedx-core) | |
| run: python setup.py sdist bdist_wheel | |
| - name: Publish openedx-core to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| user: __token__ | |
| password: ${{ secrets.PYPI_UPLOAD_TOKEN }} | |
| # TEMPORARY: Build and publish the transitional openedx-learning shell package. | |
| # TODO: Remove after the transition is complete. | |
| # See https://github.com/openedx/openedx-learning/issues/470 | |
| - name: Build shell package (openedx-learning) | |
| run: | | |
| cd tmp-openedx-learning | |
| python setup.py sdist bdist_wheel | |
| cd .. | |
| - name: Publish openedx-learning shell to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| user: __token__ | |
| password: ${{ secrets.PYPI_UPLOAD_TOKEN }} | |
| packages-dir: tmp-openedx-learning/dist/ |