Skip to content

Commit d0f13bb

Browse files
Fix public CI (#644)
* change channels priority * fix upload condition
2 parents 92b7ccb + 3a879a7 commit d0f13bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/conda-package.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: conda install conda-build
3939
- name: Build conda package
4040
run: |
41-
CHANNELS="-c intel -c defaults --override-channels"
41+
CHANNELS="-c defaults -c intel --override-channels"
4242
VERSIONS="--python ${{ matrix.python }}"
4343
TEST="--no-test"
4444
conda build \
@@ -83,7 +83,7 @@ jobs:
8383
- name: Install conda-build
8484
run: conda install conda-build
8585
- name: Build conda package
86-
run: conda build --no-test --python ${{ matrix.python }} -c intel -c defaults --override-channels conda-recipe
86+
run: conda build --no-test --python ${{ matrix.python }} -c defaults -c intel --override-channels conda-recipe
8787
- name: Upload artifact
8888
uses: actions/upload-artifact@v2
8989
with:
@@ -215,7 +215,7 @@ jobs:
215215
216216
upload_linux:
217217
needs: test_linux
218-
if: ${{ github.ref }} == 'refs/heads/master' || ${{ github.ref }} == 'refs/heads/release*'
218+
if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true)}}
219219
runs-on: ubuntu-latest
220220
strategy:
221221
matrix:
@@ -240,7 +240,7 @@ jobs:
240240
241241
upload_windows:
242242
needs: test_windows
243-
if: ${{ github.ref }} == 'refs/heads/master' || ${{ github.ref }} == 'refs/heads/release*'
243+
if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true)}}
244244
runs-on: windows-latest
245245
strategy:
246246
matrix:

0 commit comments

Comments
 (0)