File tree 1 file changed +37
-0
lines changed
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : pypi
2
+ on : [push]
3
+ jobs :
4
+ pypi :
5
+ name : upload to pypi
6
+ runs-on : ubuntu-latest
7
+ steps :
8
+ - uses : actions/checkout@v1
9
+ - name : Setup conda
10
+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
11
+ run : |
12
+ curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh
13
+ bash miniconda.sh -b -p $HOME/miniconda
14
+ export PATH="$HOME/miniconda/bin:$PATH"
15
+ hash -r
16
+ conda config --set always_yes yes --set changeps1 no
17
+ - name : create env
18
+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
19
+ run : |
20
+ export PATH=$HOME/miniconda/bin:$PATH
21
+ conda create -n foo -q --yes -c conda-forge -c bioconda python=3.7 twine numpy libcurl curl zlib
22
+ - name : sdist
23
+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
24
+ run : |
25
+ export PATH=$HOME/miniconda/bin:$PATH
26
+ source activate foo
27
+ rm -f dist/*
28
+ python setup.py sdist
29
+ - name : upload
30
+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
31
+ env :
32
+ TWINE_USERNAME : " __token__"
33
+ TWINE_PASSWORD : ${{ secrets.pypi_password }}
34
+ run : |
35
+ export PATH=$HOME/miniconda/bin:$PATH
36
+ source activate foo
37
+ twine upload dist/*
You can’t perform that action at this time.
0 commit comments