Skip to content

Commit

Permalink
Create build-conda.yml
Browse files Browse the repository at this point in the history
create a conda build workflow that doesn't upload anything for PR/MR.

change the conda publish workflow to run only upon push to main.
  • Loading branch information
ilaflott authored Jul 23, 2024
1 parent dd5b547 commit 64fd76e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: build_conda
on:
pull_request:
branches:
# for testing conda package build, no upload, during PR/MRs
- main
jobs:
build_and_publish:
runs-on: ubuntu-latest
container:
image: continuumio/miniconda3:latest
steps:
- name: Checkout Files
uses: actions/checkout@v3
- name: Run Docker to Build
run: |
conda config --append channels conda-forge
conda config --append channels noaa-gfdl
conda install conda-build conda-verify
conda config --set anaconda_upload no
conda build .

0 comments on commit 64fd76e

Please sign in to comment.