Upload Python Package #38
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
| # This workflows will upload a Python Package using Twine when a release is created | |
| # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | |
| name: Upload Python Package | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| deploy-conda: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get conda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| python-version: "3.10" | |
| channels: microsoft,conda-forge | |
| - name: Prepare | |
| run: | | |
| conda install anaconda-client conda-build conda-verify | |
| # Until https://github.com/anaconda/conda-anaconda-telemetry/issues/87 has been fixed | |
| conda remove --name base conda-anaconda-telemetry | |
| - name: Build and Upload | |
| env: | |
| ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }} | |
| run: | | |
| conda config --set anaconda_upload yes | |
| conda build --user microsoft . | |
| conda build --user microsoft --variant-config-file conda_build_config_asyncio.yaml . |