diff --git a/.github/workflows/release_conda.yml b/.github/workflows/release_conda.yml new file mode 100644 index 0000000000000000000000000000000000000000..3983c1b2dbd46053cbdf76abc29e03eb34942953 --- /dev/null +++ b/.github/workflows/release_conda.yml @@ -0,0 +1,17 @@ +name: publish_conda + +on: + release: + types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: publish-to-conda + uses: fcakyon/conda-publish-action@v1.3 + with: + subdir: 'conda' + anacondatoken: ${{ secrets.ANACONDA_TOKEN }} + platforms: 'linux' \ No newline at end of file diff --git a/conda/conda_build_config.yaml b/conda/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e2681ebab6e93d2ae6f01cc6eddfb058825a660b --- /dev/null +++ b/conda/conda_build_config.yaml @@ -0,0 +1,2 @@ +python: + - 3.6 \ No newline at end of file diff --git a/conda/meta.yaml b/conda/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7aa907128189f2dc7f65191bcaf852c5cc0dd0d2 --- /dev/null +++ b/conda/meta.yaml @@ -0,0 +1,31 @@ +{% set data = load_setup_py_data() %} +package: + name: di-engine + version: v0.2.2 + +source: + path: .. + +build: + number: 0 + script: python -m pip install . -vv + entry_points: + - ding = ding.entry.cli:cli + +requirements: + build: + - python + - setuptools + run: + - python + +test: + imports: + - ding + - dizoo + +about: + url: https://github.com/opendilab/DI-engine + license: Apache-2.0 + license_file: LICENSE + summary: DI-engine is a generalized Decision Intelligence engine. \ No newline at end of file