@@ -180,68 +180,3 @@ jobs:
180180 python .github/milestones.py
181181 env :
182182 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
183-
184-
185-
186- Conda :
187- needs : deploy
188- permissions :
189- contents : read
190- runs-on : ubuntu-22.04
191- if : startsWith(github.ref, 'refs/tags/') || (startsWith(github.event.head_commit.message, 'Bump version') != true)
192- steps :
193- - name : Checkout 🛎️
194- uses : " actions/checkout@v4"
195-
196- - name : Setup Python 🐍
197- uses : " actions/setup-python@v5"
198- with :
199- python-version : 3.11
200-
201- - name : Setup Conda
202- uses :
conda-incubator/[email protected] 203- with :
204- activate-environment : env
205- conda-build-version : 3.28.4
206- miniconda-version : py311_24.1.2-0
207- python-version : " 3.11"
208- miniforge-variant : Mambaforge
209-
210- - name : Install dependencies 🔧
211- run : |
212- python -VV
213- python -m site
214- python -m pip install --upgrade pip setuptools wheel
215- python -m pip install --upgrade "mkrecipe" "hatch-requirements-txt"
216- # $CONDA is an environment variable pointing to the root of the miniconda directory
217- $CONDA/bin/conda config --set always_yes yes --set changeps1 no
218- $CONDA/bin/conda update -n base conda
219- $CONDA/bin/conda info -a
220- $CONDA/bin/conda install conda-forge::py-lief=0.14.1
221- $CONDA/bin/conda config --add channels conda-forge
222- $CONDA/bin/conda config --add channels domdfcoding
223-
224- $CONDA/bin/conda config --remove channels defaults
225-
226- - name : Build Conda Package 📦
227- run : |
228- python -m mkrecipe --type wheel || exit 1
229- $CONDA/bin/conda build conda -c conda-forge -c domdfcoding --output-folder conda/dist
230-
231- - name : Deploy Conda Package 🚀
232- if : startsWith(github.ref, 'refs/tags/')
233- run : |
234- $CONDA/bin/conda config --set always_yes yes --set changeps1 no
235- $CONDA/bin/conda install anaconda-client
236- $CONDA/bin/conda info -a
237-
238- for f in conda/dist/noarch/domdf_python_tools-*.tar.bz2; do
239- [ -e "$f" ] || continue
240- echo "$f"
241- conda install "$f" || exit 1
242- echo "Deploying to Anaconda.org..."
243- $CONDA/bin/anaconda -t "$ANACONDA_TOKEN" upload "$f" || exit 1
244- echo "Successfully deployed to Anaconda.org."
245- done
246- env :
247- ANACONDA_TOKEN : ${{ secrets.ANACONDA_TOKEN }}
0 commit comments