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