| name: Publish Wheels to PyPi | |
| on: | |
| release: | |
| types: [created] | |
| permissions: | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.8] | |
| steps: | |
| - name: ποΈ Checkout | |
| uses: actions/checkout@v3 | |
| - name: π Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: π¦Ύ Install dependencies | |
| run: | | |
| ln -s .release/pypi/inference.core.setup.py setup.py | |
| - name: π Create Wheels | |
| run: | | |
| make create_wheels | |
| - name: π Publish to PyPi | |
| uses: pypa/gh-action-pypi-publish@release/v1 |