forked from ilastik/ilastik
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (50 loc) · 1.52 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: deploy
on:
push:
tags:
- '1.*'
jobs:
package:
runs-on: ubuntu-latest
environment: conda-deploy
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
auto-activate-base: true
activate-environment: ""
miniforge-version: latest
conda-solver: libmamba
- name: install build dependencies
run: |
conda install -n base -c conda-forge boa setuptools_scm anaconda-client -y
conda config --set anaconda_upload yes
- name: linux conda build and upload
shell: bash -l {0}
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
conda install -n base -c conda-forge boa setuptools_scm anaconda-client -y
conda config --set anaconda_upload yes
xvfb-run --server-args="-screen 0 1024x768x24" \
conda mambabuild -c pytorch -c nvidia -c ilastik-forge -c conda-forge \
--user ilastik-forge \
conda-recipe
trigger-release:
needs: [package]
runs-on: ubuntu-latest
steps:
- name: trigger
run: |
echo "Triggering release pipeline!"
curl \
--silent \
-X POST \
-F token=${{ secrets.GL_TOKEN }} \
-F "ref=main" \
-F "variables[ILASTIK_VERSION]=${GITHUB_REF##*/}" \
--output /dev/null \
${{ secrets.GL_URL }}