@@ -2,66 +2,16 @@ name: build_publish_anaconda
2
2
3
3
on :
4
4
push :
5
- branches : [ master ]
5
+ branches :
6
+ - ' **'
7
+ tags :
8
+ - ' v*'
6
9
pull_request :
7
- branches : [ master ]
8
-
9
- jobs :
10
- build-and-publish :
11
- name : ${{ matrix.os }}, Python 3.${{ matrix.python-minor-version }} for conda deployment
12
- runs-on : ${{ matrix.os }}
13
- strategy :
14
- fail-fast : false
15
- max-parallel : 3
16
- matrix :
17
- os : [ubuntu-latest]
18
- python-minor-version : [9]
19
- isMaster :
20
- - ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/dev') }}
21
- exclude :
22
- - isMaster : false
23
- os : ubuntu-latest
24
- python-minor-version : 7
25
- - isMaster : false
26
- os : ubuntu-latest
27
- python-minor-version : 8
28
- - isMaster : false
29
- os : macos-latest
30
- python-minor-version : 7
31
- - isMaster : false
32
- os : macos-latest
33
- python-minor-version : 8
34
- - isMaster : false
35
- os : macos-latest
36
- python-minor-version : 9
37
- - isMaster : false
38
- os : windows-latest
39
- python-minor-version : 7
40
- - isMaster : false
41
- os : windows-latest
42
- python-minor-version : 8
43
- - isMaster : false
44
- os : windows-latest
45
- python-minor-version : 9
10
+ branches :
11
+ - ' **'
46
12
47
- steps :
48
- - name : Chekout
49
- uses : actions/checkout@v3
50
- - name : Determine publish
51
- uses : haya14busa/action-cond@v1
52
- id : publish
53
- with :
54
- cond : ${{ contains(github.ref, 'master') || startsWith(github.ref, 'refs/heads/v') }}
55
- if_true : ' true'
56
- if_false : ' false'
57
- - name : Build and Publish
58
-
59
- with :
60
- conda : conda
61
- mamba : true
62
- python : ${{ matrix.python-minor-version }}
63
- numpy : ' 20.0'
64
- channels : openalea3, conda-forge
65
- token : ${{ secrets.ANACONDA_TOKEN }}
66
- publish : ${{ steps.publish.outputs.value }}
67
- label : main
13
+ jobs :
14
+ build :
15
+ uses : openalea/github-action-conda-build/.github/workflows/conda-package-build.yml@main
16
+ secrets :
17
+ anaconda_token : ${{ secrets.ANACONDA_TOKEN }}
0 commit comments