-
Notifications
You must be signed in to change notification settings - Fork 13
67 lines (51 loc) · 1.86 KB
/
conda_build_linux_release.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Conda Build For Linux (Release)
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
jobs:
BuildAndTest:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
# Specify python version your environment will have. Remember to quote this, or
# YAML will think you want python 3.1 not 3.10
python-version: "3.11"
# This uses *miniforge*, rather than *minicond*. The primary difference is that
# the defaults channel is not enabled at all
miniforge-version: latest
# These properties enable the use of mamba, which is much faster and far less error
# prone than conda while being completely compatible with the conda CLI
use-mamba: true
mamba-version: "*"
- name: Config Conda
working-directory: ${{github.workspace}}
shell: bash -l {0}
run: |
echo "Config Conda---------------------------------"
mamba install anaconda-client boa -c conda-forge
- name: start building
working-directory: ${{github.workspace}}
shell: bash -l {0}
run: |
echo "Building begin---------------------------------"
conda config --set anaconda_upload no
# these are infos used to check environ
mamba list
echo "Get Output file names:_________________"
OUTPUT_FN=$(conda build conda_build/conda_gen/ --output)
echo $OUTPUT_FN
#echo $TOKEN
echo "Start building---------------------------------"
conda mambabuild conda_build/conda_gen/
echo "Upload build---------------------------------"
#echo $OUTPUT_FN
anaconda -t $TOKEN upload -u kaihsinwu $OUTPUT_FN --force
env:
TOKEN: ${{ secrets.CONDA_UPLOAD_TOKEN }}