CLIP-IQA, Optimised GPU Usage and Some Fixes #73
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: deployment to conda | |
on: | |
release: | |
types: [published] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Setup Miniconda | |
run: | | |
sudo apt-get update | |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; | |
bash miniconda.sh -b -p $HOME/miniconda | |
export PATH="$HOME/miniconda/bin:$PATH" | |
conda update -q conda | |
conda config --add channels conda-forge | |
conda config --add channels pytorch | |
conda install -y anaconda-client conda-build conda-verify | |
conda config --set anaconda_upload no | |
- name: Build and publish | |
env: | |
CONDA_TOKEN: ${{ secrets.CONDA_TOKEN }} | |
CONDA_USERNAME: ${{ secrets.CONDA_USERNAME }} | |
run: | | |
export PATH="$HOME/miniconda/bin:$PATH" | |
conda build --quiet --no-test --output-folder conda_build conda.recipe | |
ls conda_build/noarch/*.tar.bz2 | xargs -I {} anaconda -v -t $CONDA_TOKEN upload -u $CONDA_USERNAME {} |