Skip to content

Commit

Permalink
Update conda_deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
julesghub authored Mar 5, 2025
1 parent e39a937 commit ca2d4bd
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/conda_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: conda package build and push

on:
on:
push:
branches:
- v2.16.x
release:
workflow_dispatch:

Expand All @@ -10,19 +13,19 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.9", "3.10"]
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.9", "3.10"]
fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}

- name: Config Conda
shell: bash -l {0}
shell: bash -el {0}
run: |
conda install --channel conda-forge conda-build anaconda-client conda-verify
conda config --add channels conda-forge
Expand All @@ -32,12 +35,12 @@ jobs:
- name: Config Conda For Upload
if: github.event_name == 'release'
shell: bash -l {0}
shell: bash -el {0}
run: conda config --set anaconda_upload yes

- name: Upload new conda package
if: github.event_name == 'release'
shell: bash -l {0}
shell: bash -el {0}
run: |
conda info
anaconda login --hostname github-actions-${{ matrix.os }}-$RANDOM --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
Expand Down

0 comments on commit ca2d4bd

Please sign in to comment.