-
Notifications
You must be signed in to change notification settings - Fork 21
36 lines (34 loc) · 1.08 KB
/
conda-release.yaml
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
name: conda-release
on:
push:
branches:
- fix-conda-build
jobs:
build-and-publish:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Set up miniconda with python 3.9
uses: conda-incubator/setup-miniconda@v2
with:
python-version: "3.10"
activate-environment: build
auto-update-conda: true
- name: conda version
run: conda --version
- name: Install build tools
run: |
conda install -c conda-forge --solver libmamba conda-build anaconda-client conda-verify grayskull
- name: Generate conda recipe
run: |
grayskull pypi https://github.com/haasad/PyPardiso --sections {package,source,build,requirements,about} --strict-conda-forge
- name: Build conda package
run: |
conda build PyPardiso
- name: Upload to haasad conda channel
if: startsWith(github.ref, 'refs/tags/v')
run: |
echo "skipped release"
# anaconda -t ${{ secrets.CONDA_TOKEN }} upload /usr/share/miniconda/envs/test/conda-bld/noarch/*.tar.bz2