Skip to content

Commit

Permalink
Fix macOS tags .condarc and test actions on change (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhochy authored Apr 22, 2021
1 parent 1ec81d7 commit a76f4f9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/macos-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ source ${SCRIPT_DIR}/macos-conda-build.sh $*

mamba install -y conda-channel-client

upload-conda-package $(conda render .ci_support/${CONDA_BUILD_YML}.yaml --output conda.recipe)
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
upload-conda-package $(conda render .ci_support/${CONDA_BUILD_YML}.yaml --output conda.recipe)
fi
4 changes: 3 additions & 1 deletion .github/workflows/tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ export CONDA_BUILD_YML=$1

conda activate base
conda build -m .ci_support/${CONDA_BUILD_YML}.yaml conda.recipe
upload-conda-package $(conda render -m .ci_support/${CONDA_BUILD_YML}.yaml --output conda.recipe)
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
upload-conda-package $(conda render -m .ci_support/${CONDA_BUILD_YML}.yaml --output conda.recipe)
fi
5 changes: 5 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ jobs:
uses: actions/[email protected]
with:
ref: ${{ github.head_ref }}
- name: Create .condarc
shell: bash -l {0}
run: |
sed -ie "s/***REMOVED***/${***REMOVED***}/g" .github/workflows/.condarc
sed -ie "s/***REMOVED***/${***REMOVED***}/g" .github/workflows/.condarc
- uses: conda-incubator/setup-miniconda@723ab12c1d66bb893c5ac701f8e387f00b24549e
with:
miniforge-variant: Mambaforge
Expand Down

0 comments on commit a76f4f9

Please sign in to comment.