-
Notifications
You must be signed in to change notification settings - Fork 26
50 lines (48 loc) · 1.44 KB
/
conda-release.yaml
File metadata and controls
50 lines (48 loc) · 1.44 KB
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
name: conda-release
on:
release:
types: [published]
workflow_dispatch: {}
jobs:
build-and-publish:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Set up miniconda
uses: conda-incubator/setup-miniconda@v3
with:
channels: conda-forge
auto-activate: true
activate-environment: ""
- name: update conda
run: |
conda update conda
conda --version
- name: Install build tools
run: |
conda install -c conda-forge 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: Upload recipe
uses: actions/upload-artifact@v5
with:
name: meta.yaml
path: PyPardiso/meta.yaml
- name: setuptools-scm work-around
run: |
VERSION=$(grep "set version" PyPardiso/meta.yaml | cut -d '"' -f2)
cat > PyPardiso/recipe_append.yaml <<EOF
build:
script_env:
- SETUPTOOLS_SCM_PRETEND_VERSION=${VERSION}
EOF
cat PyPardiso/recipe_append.yaml
- name: Build conda package
run: |
conda build PyPardiso
- name: Upload to haasad conda channel
run: |
anaconda -t ${{ secrets.CONDA_TOKEN }} upload /usr/share/miniconda/conda-bld/noarch/*.tar.bz2