-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.02 KB
/
publish_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
name: 'Publish Conda Package'
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
jobs:
build-and-publish:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repo
uses: actions/checkout@master
- name: Get version identifier
id: get_version
run: |
echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v}
echo ${GITHUB_REF#refs/tags/v}
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
auto-activate-base: false
activate-environment: anaconda-client-env
environment-file: conda/environment.yml
- name: Build package and publish
run: |
conda config --set anaconda_upload yes
conda build -c conda-forge .
env:
AUTOCOMPCHEM_VERSION: ${{ steps.get_version.outputs.VERSION }}