Create anaconda-deploy #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish_conda | |
on: | |
release: | |
types: [published] | |
# Temporary: for debug purposes only | |
pull_request: | |
jobs: | |
conda_build: | |
name: Conda ${{ matrix.os }} build and upload | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install micromamba | |
uses: mamba-org/setup-micromamba@v1 | |
env: | |
ACTIONS_STEP_DEBUG: true | |
with: | |
init-shell: >- | |
bash | |
powershell | |
create-args: >- | |
python=3.11 | |
conda | |
conda-build | |
anaconda-client | |
environment-name: molli | |
# #environment-file: environment.yml | |
# #cache-environment: true | |
# #generate-run-shell: true | |
# # condarc: | | |
# # channel_priority: flexible | |
# # channels: | |
# # - conda-forge | |
- name: Build conda package | |
env: | |
ACTIONS_STEP_DEBUG: true | |
LABEL: test | |
run: | | |
mkdir conda-dist; | |
conda build --output-folder conda-dist --label ${{ env.LABEL }} conda-recipe; | |
- name: Upload conda package | |
env: | |
ACTIONS_STEP_DEBUG: true | |
LABEL: test | |
run: | | |
anaconda --token ${{ secrets.CONDA_TOKEN }} upload --user esalx --label ${{ env.LABEL }} conda-dist/*/molli-*.tar.bz2; |