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 }}