From fbc7651b4edd9fb7c5dea67a62b4bb2598bf6d7c Mon Sep 17 00:00:00 2001 From: Ward D Date: Wed, 14 Jun 2023 17:00:44 +0200 Subject: [PATCH] Update pypi.yml Purge if starts from from pypi upload --- .github/workflows/pypi.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index cd139ee1..e30e5771 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -9,7 +9,6 @@ jobs: steps: - uses: actions/checkout@v1 - name: Setup conda - if: startsWith(github.event.ref, 'refs/tags') run: | curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh bash miniconda.sh -b -p $HOME/miniconda @@ -17,19 +16,16 @@ jobs: hash -r conda config --set always_yes yes --set changeps1 no - name: create env - if: startsWith(github.event.ref, 'refs/tags') run: | export PATH=$HOME/miniconda/bin:$PATH conda create -n foo -q --yes -c conda-forge -c bioconda python=3.7 twine - name: sdist - if: startsWith(github.event.ref, 'refs/tags') run: | export PATH=$HOME/miniconda/bin:$PATH source activate foo rm -f dist/* python setup.py sdist - name: upload - if: startsWith(github.event.ref, 'refs/tags') env: TWINE_USERNAME: "__token__" TWINE_PASSWORD: ${{ secrets.pypi_password }}