Skip to content

Commit ff565ac

Browse files
author
etotmeni
committed
add upload win
1 parent 76dfd8e commit ff565ac

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

.github/workflows/conda-package.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ jobs:
182182
- name: Run tests
183183
run: python -m pytest --pyargs ${{ env.MODULE_NAME }}
184184

185-
upload:
186-
needs: test
185+
upload_linux:
186+
needs: test_linux
187187
if: ${{ github.ref == 'refs/heads/master' }}
188188
runs-on: ubuntu-latest
189189
strategy:
@@ -206,3 +206,29 @@ jobs:
206206
run: |
207207
conda install anaconda-client
208208
anaconda --token $ANACONDA_TOKEN upload --user dppy --label dev ${PACKAGE_NAME}-*.tar.bz2
209+
210+
upload_windows:
211+
needs: test_windows
212+
if: ${{ github.ref == 'refs/heads/master' }}
213+
runs-on: windows-latest
214+
strategy:
215+
matrix:
216+
python: [3.8]
217+
steps:
218+
- name: Download artifact
219+
uses: actions/download-artifact@v2
220+
with:
221+
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
222+
- uses: conda-incubator/setup-miniconda@v2
223+
with:
224+
auto-activate-base: true
225+
activate-environment: ""
226+
- name: Install anaconda-client
227+
run: conda install anaconda-client
228+
229+
- name: Upload
230+
env:
231+
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
232+
run: |
233+
conda install anaconda-client
234+
anaconda --token ${{ env.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.PACKAGE_NAME }}-*.tar.bz2

0 commit comments

Comments
 (0)