Skip to content

Commit 08b68db

Browse files
committed
Fixing release workflow, again.
Pin down conda-build<25 to work around internal artifact extention rename from .tar.bz2 to .conda in `setuptools-conda` Adds an anaconda test label for release candidates, which prevents people from auto-installing them via conda. Ensure artifact uploads fail if files are not found.
1 parent 29cdf95 commit 08b68db

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/build_release.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
with:
4949
name: dist
5050
path: ./dist
51+
if-no-files-found: error
5152

5253
- name: Set Variables for Conda Build
5354
shell: bash
@@ -69,14 +70,15 @@ jobs:
6970
- name: Conda package (Unix)
7071
shell: bash -l {0}
7172
run: |
72-
conda install -c labscript-suite setuptools-conda
73+
conda install -c labscript-suite setuptools-conda "conda-build<25"
7374
setuptools-conda build $CONDA_BUILD_ARGS .
7475
7576
- name: Upload Artifact (conda)
7677
uses: actions/upload-artifact@v4
7778
with:
7879
name: conda_packages
7980
path: ./conda_packages
81+
if-no-files-found: error
8082

8183
github-release:
8284
name: Github Release
@@ -179,8 +181,20 @@ jobs:
179181
shell: bash -l {0}
180182
run: conda install anaconda-client
181183

184+
- name: Publish to Test Anaconda channel
185+
shell: bash -l {0}
186+
if: contains(github.event.ref, 'rc')
187+
run: |
188+
anaconda \
189+
--token ${{ secrets.ANACONDA_API_TOKEN }} \
190+
upload \
191+
--user $ANACONDA_USER \
192+
--label test \
193+
conda_packages/*/*
194+
182195
- name: Publish to Anaconda channel
183196
shell: bash -l {0}
197+
if: contains(github.event.ref, 'rc') != true
184198
run: |
185199
anaconda \
186200
--token ${{ secrets.ANACONDA_API_TOKEN }} \

0 commit comments

Comments
 (0)