From a77ebf22a54fef395ab6e9ea672e816ba222db19 Mon Sep 17 00:00:00 2001 From: esc Date: Wed, 29 May 2024 11:53:21 +0200 Subject: [PATCH] implement PyPi upload As title --- .github/workflows/pypi_upload.yml | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/pypi_upload.yml 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 }}