diff --git a/.github/workflows/pypi_upload.yml b/.github/workflows/pypi_upload.yml new file mode 100644 index 0000000..2ffd54e --- /dev/null +++ b/.github/workflows/pypi_upload.yml @@ -0,0 +1,34 @@ +name: pypi build and upload + +on: + push: + tags: + - '*' + +jobs: + deploy_pypi: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup Miniconda + uses: conda-incubator/setup-miniconda@v3 + with: + auto-update-conda: true + auto-activate-base: false + - name: Install dependencies + shell: bash -l {0} + run: | + conda install llvmlite setuptools python-build + - name: Build PyPI artifacts + shell: bash -l {0} + run: | + python-build + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@v1.8.14 + with: + user: __token__ + password: ${{ secrets.PYPI_SECRET }}