Update release_conda.yml #3
Workflow file for this run
This file contains hidden or 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: Release Conda | |
| on: | |
| push: | |
| branches: | |
| - conda_cd | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| jobs: | |
| condapublish: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04] | |
| pyv: ["3.10"] | |
| max-parallel: 5 | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| id-token: write | |
| contents: write | |
| deployments: write | |
| statuses: write | |
| actions: write | |
| checks: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Miniconda and mamba | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| python-version: ${{ matrix.pyv }} | |
| auto-update-conda: true | |
| activate-environment: base | |
| use-mamba: true | |
| - name: Install build tools | |
| run: | | |
| mamba install -y -c conda-forge anaconda-client conda-build conda-verify | |
| - name: Add conda to system PATH | |
| run: echo $CONDA/bin >> $GITHUB_PATH | |
| - name: Publish to Conda | |
| uses: fcakyon/conda-publish-action@v1.3 | |
| with: | |
| subdir: '.github/conda' | |
| anacondatoken: ${{ secrets.ANACONDA_TOKEN }} |