1
0
mirror of https://github.com/msberends/AMR.git synced 2025-06-08 16:34:03 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
8d2c5afab6
publish anaconda 2025-05-20 15:05:24 +02:00
4933292639
publish anaconda 2025-05-20 15:00:45 +02:00

View File

@ -60,7 +60,7 @@ jobs:
cd data-raw/ cd data-raw/
bash _generate_python_wrapper.sh bash _generate_python_wrapper.sh
- name: Publish to PyPI - name: Upload to PyPI
continue-on-error: true continue-on-error: true
env: env:
TWINE_USERNAME: "__token__" TWINE_USERNAME: "__token__"
@ -69,7 +69,7 @@ jobs:
cd PythonPackage/AMR cd PythonPackage/AMR
python -m twine upload dist/* python -m twine upload dist/*
- name: Publish to PyPI Testserver - name: Upload to PyPI Testserver
continue-on-error: true continue-on-error: true
env: env:
TWINE_USERNAME: "__token__" TWINE_USERNAME: "__token__"
@ -77,26 +77,37 @@ jobs:
run: | run: |
cd PythonPackage/AMR cd PythonPackage/AMR
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
- name: Install conda-build
continue-on-error: true
run: |
pip install conda-build anaconda
- name: Build conda package # - name: Set up Miniconda
continue-on-error: true # continue-on-error: true
run: | # uses: conda-incubator/setup-miniconda@v2
cd PythonPackage/AMR # with:
conda skeleton pypi . # Generates meta.yaml for the local folder # auto-update-conda: true
conda-build ./ --output-folder conda-bld # miniconda-version: "latest"
# channels: conda-forge,defaults
- name: Publish to Anaconda # activate-environment: build-env
env: # python-version: "3.9"
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} #
run: | # - name: Install conda-build and anaconda-client
anaconda login --token $ANACONDA_API_TOKEN # continue-on-error: true
anaconda upload conda-bld/**/amr-*.tar.bz2 --user msberends --label main # run: |
rm -rf conda-bld # 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 - name: Git push to python-wrapper branch
run: | run: |