-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 1.33 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
name: deploy-conda
on:
push:
branches:
- main
release:
types:
- published
jobs:
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@v3
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 conda-bld .
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}