Skip to content

update on the namespace file, LD.R file, and add demo file #8

update on the namespace file, LD.R file, and add demo file

update on the namespace file, LD.R file, and add demo file #8

name: Upload conda packages to anaconda.org
on:
pull_request:
types: [closed]
jobs:
upload:
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'upload')
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform: ["linux-64", "osx-64"]
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Download packages
id: download-packages
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: conda_mambabuild_${{ matrix.platform }}.yml
name: conda-bld_${{ github.event.pull_request.head.sha }}_${{ matrix.platform }}
path: /tmp/conda-bld
search_artifacts: true
if_no_artifact_found: warn
- name: Setup micromamba
if: steps.download-packages.outputs.found_artifact == 'true'
uses: mamba-org/setup-micromamba@v1
with:
environment-name: anaconda-client
create-args: anaconda-client python=3.11
generate-run-shell: true
- name: Upload packages
if: steps.download-packages.outputs.found_artifact == 'true'
shell: micromamba-shell {0}
run: |
if test -d /tmp/conda-bld/${{ matrix.platform }}; then
anaconda upload --force /tmp/conda-bld/${{ matrix.platform }}/*.tar.bz2
fi
if test -d /tmp/conda-bld/noarch; then
anaconda upload --force /tmp/conda-bld/noarch/*.tar.bz2
fi