-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.42 KB
/
publish_conda.yml
File metadata and controls
55 lines (44 loc) · 1.42 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
44
45
46
47
48
49
50
51
52
53
54
55
name: publish_conda
jobs:
condapublish:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout Files
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up base Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
auto-activate: true
activate-environment: base
miniforge-version: latest
conda-remove-defaults: true
channels: conda-forge,noaa-gfdl
- name: Conda install conda-build
run: |
echo "conda install conda-build"
conda install conda-forge::conda-build conda-forge::anaconda-client
- name: Configure Conda
run: |
echo "setting strict channel priority"
conda config --set channel_priority strict
echo "setting anaconda_upload to yes"
conda config --set anaconda_upload yes
echo "printing conda config just in case"
conda config --show
- name: Conda Build Check
run: |
echo ""
echo "sanity check, conda build check"
conda build --check .
- name: Build fremor Conda Package
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
echo ""
echo "building conda package for publishing"
conda build --no-include-recipe --no-test .