-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e39b399
commit 0ecb2d4
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
name: Build and deploy conda packages optimex | ||
|
||
on: | ||
push: | ||
branches: [main, develop] | ||
tags: '*' | ||
paths-ignore: | ||
# Don't re-build if we only change README.md Or CHANGES.md | ||
- '**.md' | ||
jobs: | ||
conda-pkg-build: | ||
name: build | ||
runs-on: "ubuntu-latest" | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
python-version: 3.11 | ||
auto-activate-base: true | ||
- name: Publish distribution 📦 to conda channels | ||
if: startsWith(github.ref, 'refs/tags') | ||
run: | | ||
conda info | ||
conda config --set auto_update_conda False | ||
conda install -y -q conda-build anaconda-client | ||
anaconda login --username ${{ secrets.ANACONDA_USER }} --password ${{ secrets.ANACONDA_PASSWORD }} | ||
conda config --set anaconda_upload yes | ||
cd conda | ||
conda build -c conda-forge -c cmutel -c diepers . |