Release AEnvironment SDK #33
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: Release AEnvironment SDK | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| publish-to-pypi: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install build dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install --upgrade build setuptools wheel | |
| - name: Build package | |
| run: | | |
| cd ./aenv | |
| python scripts/build_version.py | |
| python -m build | |
| - name: Move dist to workspace and Verify wheel metadata test | |
| run: | | |
| mv ./aenv/dist . | |
| unzip -p dist/*.whl | grep "Requires-Dist" || echo "WARNING: No dependencies found!" | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| password: ${{ secrets.PYPI_AUTH_PASSWORD }} |