-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (51 loc) · 2.36 KB
/
conda_deploy.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
45
46
47
48
49
50
51
52
53
54
55
## -------------------------------------------------------------------------------------------------
## -- Project : MLPro - The integrative middleware framework for standardized machine learning
## -- Workflow: conda_deploy.yml
## -------------------------------------------------------------------------------------------------
## -- History :
## -- yyyy-mm-dd Ver. Auth. Description
## -- 2021 1.0.0 MRD Creation
## -- 2024-10-09 1.1.0 DA Updated Python version to 3.10
## -------------------------------------------------------------------------------------------------
name: Deployment Conda
on:
release:
types: [published]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda install conda-build anaconda-client conda-verify
- name: Build Package
run: |
conda build --output-folder src/conda src/conda
- name: Convert Package
run: |
conda convert -p win-64 -o src/conda src/conda/linux-64/*.tar.bz2
conda convert -p osx-64 -o src/conda src/conda/linux-64/*.tar.bz2
conda convert -p osx-arm64 -o src/conda src/conda/linux-64/*.tar.bz2
conda convert -p linux-aarch64 -o src/conda src/conda/linux-64/*.tar.bz2
conda convert -p linux-armv7l -o src/conda src/conda/linux-64/*.tar.bz2
conda convert -p linux-armv6l -o src/conda src/conda/linux-64/*.tar.bz2
- name: Upload Conda Package
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
anaconda upload --force --label main src/conda/linux-64/*.tar.bz2
anaconda upload --force --label main src/conda/win-64/*.tar.bz2
anaconda upload --force --label main src/conda/osx-64/*.tar.bz2
anaconda upload --force --label main src/conda/osx-arm64/*.tar.bz2
anaconda upload --force --label main src/conda/linux-aarch64/*.tar.bz2
anaconda upload --force --label main src/conda/linux-armv7l/*.tar.bz2
anaconda upload --force --label main src/conda/linux-armv6l/*.tar.bz2