Skip to content

Commit 8f5eb91

Browse files
committed
Maybe this works...
1 parent cea1351 commit 8f5eb91

2 files changed

Lines changed: 6 additions & 13 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,30 +31,22 @@ jobs:
3131
- name: Install conda-build
3232
shell: bash -l {0}
3333
run: |
34-
conda install -n itdiscover-build -y -c conda-forge conda-build
34+
conda install -n base -y -c conda-forge conda-build
3535
3636
- name: Build package
3737
shell: bash -l {0}
3838
run: |
39-
mkdir -p dist
40-
conda-build conda-recipe/ --output-folder dist
41-
find dist -maxdepth 3 -type f | sort
39+
conda build conda-recipe/
4240
4341
- name: Locate built package
4442
id: locate
4543
shell: bash -l {0}
4644
run: |
47-
PKG_PATH="$(conda-build conda-recipe/ --output)"
45+
PKG_PATH="$(conda build conda-recipe/ --output)"
4846
if [ -z "$PKG_PATH" ]; then
49-
echo "No conda package path reported by conda-build"
47+
echo "No conda package path reported by conda build"
5048
exit 1
5149
fi
52-
if [ ! -f "$PKG_PATH" ]; then
53-
ALT_PATH="$(find dist -type f \( -name "*.conda" -o -name "*.tar.bz2" \) | head -n 1)"
54-
if [ -n "$ALT_PATH" ]; then
55-
PKG_PATH="$ALT_PATH"
56-
fi
57-
fi
5850
if [ ! -f "$PKG_PATH" ]; then
5951
echo "Reported package path does not exist: $PKG_PATH"
6052
exit 1
@@ -64,7 +56,7 @@ jobs:
6456
- name: Smoke test built package
6557
shell: bash -l {0}
6658
run: |
67-
conda-build --test "${{ steps.locate.outputs.pkg_path }}"
59+
conda build --test "${{ steps.locate.outputs.pkg_path }}"
6860
6961
- name: Upload conda artifact
7062
uses: actions/upload-artifact@v4

conda-recipe/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ source:
1111
build:
1212
number: 0
1313
noarch: python
14+
script: {{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv
1415

1516
requirements:
1617
host:

0 commit comments

Comments
 (0)