Publish FoldOptLib to Anaconda #41
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 FoldOptLib to Anaconda | |
on: | |
release: | |
types: [edited, created, published] | |
jobs: | |
conda-deploy: | |
name: Uploading to FoldOptLib for python ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest", "windows-latest","macos-latest"] | |
python-version: ["3.9"] | |
steps: | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/checkout@v3 | |
- name: update submodules | |
# shell: bash -l {0} | |
run: | | |
git submodule update --init --recursive | |
- name: Add msbuild to PATH | |
if: matrix.os == 'windows-latest' | |
uses: microsoft/[email protected] | |
- name: Conda build' | |
env: | |
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
shell: bash -l {0} | |
run: | | |
conda install -c conda-forge conda-build anaconda-client -y | |
conda build -c anaconda -c conda-forge -c loop3d --output-folder conda conda | |
conda install anaconda-client -y | |
- name: upload windows | |
env: | |
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
if: matrix.os == 'windows-latest' | |
shell: bash -l {0} | |
run: | | |
anaconda upload --label main conda/win-64/*.tar.bz2 | |
- name: upload linux | |
env: | |
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
if: matrix.os == 'ubuntu-latest' | |
shell: bash -l {0} | |
run: | | |
anaconda upload --label main conda/linux-64/*.tar.bz2 | |
- name: upload macosx | |
env: | |
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
if: matrix.os == 'macos-latest' | |
shell: bash -l {0} | |
run: | | |
anaconda upload --label main conda/osx-64/*.tar.bz2 | |