Skip to content

Commit

Permalink
removed codna deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijeet-plato committed Oct 23, 2023
1 parent c129ef4 commit e4fc7ef
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,41 +73,41 @@ jobs:
python setup.py sdist bdist_wheel # This should work now
twine upload dist/* -u $PYPI_USERNAME -p $PYPI_PASSWORD
deploy-conda:
needs: create_release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Conda
run: |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
source "$HOME/miniconda/etc/profile.d/conda.sh"
conda config --set always_yes yes --set changeps1 no
conda update -q conda
- name: Download new_version artifact
uses: actions/download-artifact@v2
with:
name: new_version
- name: Set TAG_NAME from artifact
run: echo "TAG_NAME=$(cat new_version.txt)" >> $GITHUB_ENV
- name: Enable Anaconda Upload
run: conda config --set anaconda_upload yes
- name: Install conda-build
run: conda install conda-build
- name: Install pip via conda
run: pip install -r requirements.txt
- name: Add forge channel
run: conda config --add channels conda-forge
- name: Install yq via pip
run: pip install yq
- name: Update version in meta.yaml
run: yq -y ".package.version = \"${{ env.TAG_NAME }}\"" conda/meta.yaml > conda/temp_meta.yaml && mv conda/temp_meta.yaml conda/meta.yaml
- name: Build and Publish to Anaconda
env:
ANACONDA_USERNAME: ${{ secrets.ANACONDA_USERNAME }}
ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD }}
run: |
conda build -c conda-forge .
anaconda login --user $ANACONDA_USERNAME --password $ANACONDA_PASSWORD
anaconda upload $HOME/miniconda/conda-bld/**/artifician*.tar.bz2
# deploy-conda:
# needs: create_release
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Set up Conda
# run: |
# wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
# bash miniconda.sh -b -p $HOME/miniconda
# source "$HOME/miniconda/etc/profile.d/conda.sh"
# conda config --set always_yes yes --set changeps1 no
# conda update -q conda
# - name: Download new_version artifact
# uses: actions/download-artifact@v2
# with:
# name: new_version
# - name: Set TAG_NAME from artifact
# run: echo "TAG_NAME=$(cat new_version.txt)" >> $GITHUB_ENV
# - name: Enable Anaconda Upload
# run: conda config --set anaconda_upload yes
# - name: Install conda-build
# run: conda install conda-build
# - name: Install pip via conda
# run: pip install -r requirements.txt
# - name: Add forge channel
# run: conda config --add channels conda-forge
# - name: Install yq via pip
# run: pip install yq
# - name: Update version in meta.yaml
# run: yq -y ".package.version = \"${{ env.TAG_NAME }}\"" conda/meta.yaml > conda/temp_meta.yaml && mv conda/temp_meta.yaml conda/meta.yaml
# - name: Build and Publish to Anaconda
# env:
# ANACONDA_USERNAME: ${{ secrets.ANACONDA_USERNAME }}
# ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD }}
# run: |
# conda build -c conda-forge .
# anaconda login --user $ANACONDA_USERNAME --password $ANACONDA_PASSWORD
# anaconda upload $HOME/miniconda/conda-bld/**/artifician*.tar.bz2

0 comments on commit e4fc7ef

Please sign in to comment.