Skip to content

Commit 9486943

Browse files
authored
Upload conda packages for robotology channel on both anaconda.org and prefix.dev
1 parent 1d4c4b8 commit 9486943

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/generate-conda-packages.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,16 @@ jobs:
221221
if: github.event_name == 'schedule' || github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.upload_conda_binaries == 'true')
222222
env:
223223
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
224+
PREFIX_DEV_TOKEN: ${{ secrets.PREFIX_DEV_TOKEN }}
224225
run: |
225226
cd ${CONDA_BLD_PATH}/${{ matrix.conda_platform}}/
226227
ls *.tar.bz2
227228
anaconda upload --skip-existing *.tar.bz2
229+
pixi auth login https://prefix.dev --token $PREFIX_DEV_TOKEN
230+
for condapackage in *.tar.bz2; do
231+
pixi upload https://prefix.dev/api/v1/upload/robotology "$condapackage"
232+
done
233+
pixi auth logout https://prefix.dev
228234
229235
# Only on linux-64 we upload noarch packages (noarch packages need to be uploaded only once, as they can be reused across platforms)
230236
- name: Upload conda packages (noarch)
@@ -233,10 +239,16 @@ jobs:
233239
if: matrix.conda_platform == 'linux-64' && (github.event_name == 'schedule' || github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.upload_conda_binaries == 'true'))
234240
env:
235241
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
242+
PREFIX_DEV_TOKEN: ${{ secrets.PREFIX_DEV_TOKEN }}
236243
run: |
237244
cd ${CONDA_BLD_PATH}/noarch/
238245
ls *.tar.bz2
239246
anaconda upload --skip-existing *.tar.bz2
247+
pixi auth login https://prefix.dev --token $PREFIX_DEV_TOKEN
248+
for condapackage in *.tar.bz2; do
249+
pixi upload https://prefix.dev/api/v1/upload/robotology "$condapackage"
250+
done
251+
pixi auth logout https://prefix.dev
240252
241253
- name: Build robotology-distro-all conda metapackage (if necessary)
242254
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.test_metapackages_generation == 'true')
@@ -253,11 +265,16 @@ jobs:
253265
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.test_metapackages_generation == 'true' && github.event.inputs.upload_conda_binaries == 'true')
254266
env:
255267
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
268+
PREFIX_DEV_TOKEN: ${{ secrets.PREFIX_DEV_TOKEN }}
256269
run: |
257270
cd ${CONDA_BLD_PATH}/${{ matrix.conda_platform}}/
258271
ls robotology-distro-all-*.tar.bz2
259272
anaconda upload --skip-existing robotology-distro-all-*.tar.bz2
260-
273+
pixi auth login https://prefix.dev --token $PREFIX_DEV_TOKEN
274+
for condapackage in robotology-distro-all-*.tar.bz2; do
275+
pixi upload https://prefix.dev/api/v1/upload/robotology "$condapackage"
276+
done
277+
pixi auth logout https://prefix.dev
261278
262279

263280
# If the generate-conda-packages completed correctly and binaries are uploaded,

doc/conda-forge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ To ensure redundancy, the `robotology` channel is available on two servers:
9494
* [`prefix.dev`](https://prefix.dev/channels/robotology)
9595
* [`anaconda.org`](https://anaconda.org/robotology/)
9696

97-
The full history of packages is available on the prefix.dev mirror, so if you aim for reproducibility, try to use the prefix.dev mirror by specifying the channel via `-c https://repo.prefix.dev/robotology`. On the anaconda.org, some packages built before 1st of July 2022 are not available, so if you only care for the latest packages, you can also install packages by simply passing `-c robotology` to conda.
97+
The full history of packages is available on the prefix.dev mirror, so if you aim for reproducibility, try to use the prefix.dev mirror by specifying the channel via `-c https://repo.prefix.dev/robotology`. On the anaconda.org, some packages built before 1st of January 2023 are not available, so if you only care for the latest packages, you can also install packages by simply passing `-c robotology` to conda.
9898

9999
## Source installation
100100

0 commit comments

Comments
 (0)