forked from mdekauwe/CABLE_benchmarking
-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (39 loc) · 1.26 KB
/
Copy pathcd.yaml
File metadata and controls
43 lines (39 loc) · 1.26 KB
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
name: CD
on:
release:
types: [released]
jobs:
conda_deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: '3.9'
environment-file: .conda/build_env.yaml
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: Enforce .tar.bz2 packages
# Temporary work-arounds while the action uibcdf/action-build-and-upload-conda-packages gets updated:
# We create a `~/.condarc` file with the correct options to enforce the use of `.tar.bz2` packages
# and we set the channels to be used by conda build
shell: bash
run: |
cat > ~/.condarc << EOF
conda-build:
pkg_format: .tar.bz2
channels:
- accessnri
- conda-forge
- coecms
- nodefaults
EOF
- name: Build and upload the conda packages
uses: ACCESS-NRI/action-build-and-upload-conda-packages@v3.1.0
with:
python-version: '3.9'
meta_yaml_dir: .conda
user: accessnri
label: main
token: ${{ secrets.ANACONDA_TOKEN }}