From 8d2c5afab6447d8f2ce5bd2a5eccb0f3d1523365 Mon Sep 17 00:00:00 2001 From: Matthijs Berends Date: Tue, 20 May 2025 15:05:24 +0200 Subject: [PATCH] publish anaconda --- .github/workflows/publish-to-pypi.yml | 56 ++++++++++++++------------- 1 file changed, 30 insertions(+), 26 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 850c2a7d7..77d4e1b80 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -78,32 +78,36 @@ jobs: cd PythonPackage/AMR python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* - - name: Set up Miniconda - uses: conda-incubator/setup-miniconda@v2 - with: - auto-update-conda: true - miniconda-version: "latest" - channels: conda-forge,defaults - activate-environment: build-env - python-version: "3.9" - - - name: Install conda-build and anaconda-client - run: | - conda install -y conda-build anaconda-client - - - name: Build conda package - run: | - cd PythonPackage/AMR - conda skeleton pypi . # Or use custom recipe - conda-build ./ --output-folder conda-bld - - - name: Upload to Anaconda - env: - ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} - run: | - anaconda login --token $ANACONDA_API_TOKEN - anaconda upload conda-bld/**/amr-*.tar.bz2 --user msberends --label main - rm -rf conda-bld + # - name: Set up Miniconda + # continue-on-error: true + # uses: conda-incubator/setup-miniconda@v2 + # with: + # auto-update-conda: true + # miniconda-version: "latest" + # channels: conda-forge,defaults + # activate-environment: build-env + # python-version: "3.9" + # + # - name: Install conda-build and anaconda-client + # continue-on-error: true + # run: | + # conda install -y conda-build anaconda-client + # + # - name: Build conda package + # continue-on-error: true + # run: | + # cd PythonPackage/AMR + # conda skeleton pypi . # Or use custom recipe + # conda-build ./ --output-folder conda-bld + # + # - name: Upload to Anaconda + # continue-on-error: true + # env: + # ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} + # run: | + # anaconda login --token $ANACONDA_API_TOKEN + # anaconda upload conda-bld/**/amr-*.tar.bz2 --user msberends --label main + # rm -rf conda-bld - name: Git push to python-wrapper branch run: |