-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (49 loc) · 1.76 KB
/
deploy-conda.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
name: deploy-conda
on:
push:
branches:
- main
release:
types:
- published
jobs:
# publish:
# runs-on: ubuntu-latest
# name: Publish to Conda
# steps:
# - name: Checkout
# uses: actions/checkout@v2
#
# - name: publish-to-conda
# uses: fcakyon/conda-publish-action@v1.3
# with:
# subdir: 'conda-recipe'
# anacondatoken: ${{ secrets.ANACONDA_TOKEN }}
# platforms: 'win osx linux'
build_conda:
runs-on: ubuntu-latest
name: Publish to Conda
strategy:
fail-fast: false
# To upload to PyPI on every tag starting with 'v', use the following:
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
# To publish to pypi on each GitHub Release, use the following:
# if: github.event_name == 'release' && github.event.action == 'published'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
auto-update-conda: true
- name: Build and upload package
shell: bash -el {0}
run: |
conda install -y conda-build anaconda-client
conda config --set anaconda_upload yes
export PATH=$(conda info --root):$PATH
export PATH=$(conda info --root)/bin:$PATH
conda-build --output-folder . .
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}