Skip to content

Commit

Permalink
Try to get release build working again.
Browse files Browse the repository at this point in the history
  • Loading branch information
swainn committed Jun 23, 2022
1 parent eeba71f commit 450fba1
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 13 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/tethys-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
# Checkout the source
- name: Checkout Source
uses: actions/checkout@v2
with:
fetch-depth: 0
# Get Tag Name
- name: Get Tag
id: gitTag
Expand Down Expand Up @@ -50,6 +52,8 @@ jobs:
# Checkout the source
- name: Checkout Source
uses: actions/checkout@v2
with:
fetch-depth: 0
# Setup Tethys
- name: Setup Tethys
run: |
Expand Down Expand Up @@ -85,12 +89,16 @@ jobs:
run: |
cd ..
. ~/miniconda/etc/profile.d/conda.sh;
conda activate tethys;
conda build -c tethysplatform -c conda-forge ./tethys/conda.recipe
mamba create -y -c conda-forge -n conda-build boa anaconda-client
conda activate conda-build
conda config --set anaconda_upload no
mkdir -p ~/conda-bld
conda mambabuild -c tethysplatform -c conda-forge ./tethys/conda.recipe
# Upload Conda No Pull Request With Tag
- name: Upload Conda With Tag
run: |
cd ..
. ~/miniconda/etc/profile.d/conda.sh;
conda activate tethys;
ls ~/conda-bld/noarch
conda activate conda-build
anaconda -t "${{ secrets.CONDA_UPLOAD_TOKEN }}" upload -u ${{ secrets.CONDA_UPLOAD_USER }} $CONDA_BLD_PATH/noarch/tethys-platform*.tar.bz2 --force;
21 changes: 14 additions & 7 deletions .github/workflows/tethys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
# Checkout the source
- name: Checkout Source
uses: actions/checkout@v2
with:
fetch-depth: 0
# Install Tethys
- name: Install Tethys
run: |
Expand Down Expand Up @@ -70,6 +72,8 @@ jobs:
# Checkout the source
- name: Checkout Source
uses: actions/checkout@v2
with:
fetch-depth: 0
# Build the docker for no tag
- name: Build Without Tag
run: |
Expand Down Expand Up @@ -100,6 +104,8 @@ jobs:
# Checkout the source
- name: Checkout Source
uses: actions/checkout@v2
with:
fetch-depth: 0
# Setup Tethys
- name: Setup Tethys
run: |
Expand All @@ -110,9 +116,6 @@ jobs:
hash -r
conda config --set always_yes yes --set changeps1 no
conda update -q conda
conda install conda-build anaconda-client
conda config --set anaconda_upload no
mkdir -p ~/conda-bld
# Export Conda Build Path
- name: Set Conda Build Path
uses: allenevans/set-env@v2.0.0
Expand All @@ -135,17 +138,21 @@ jobs:
run: |
cd ..
. ~/miniconda/etc/profile.d/conda.sh;
conda activate tethys;
conda build -c tethysplatform -c conda-forge ./tethys/conda.recipe
mamba create -y -c conda-forge -n conda-build boa anaconda-client
conda activate conda-build
conda config --set anaconda_upload no
mkdir -p ~/conda-bld
conda mambabuild -c tethysplatform -c conda-forge ./tethys/conda.recipe
# Upload Conda No Pull Request No Tag
- name: Upload Conda No Tag
if: ${{ github.event_name != 'pull_request' }}
run: |
cd ..
. ~/miniconda/etc/profile.d/conda.sh;
conda activate tethys;
ls ~/conda-bld/noarch
anaconda -t "${{ secrets.CONDA_UPLOAD_TOKEN }}" upload -u ${{ secrets.CONDA_UPLOAD_USER }} -l dev $CONDA_BLD_PATH/noarch/tethys-platform*.tar.bz2 --force;
echo "No push to dev..."
# conda activate conda-build
# anaconda -t "${{ secrets.CONDA_UPLOAD_TOKEN }}" upload -u ${{ secrets.CONDA_UPLOAD_USER }} -l dev $CONDA_BLD_PATH/noarch/tethys-platform*.tar.bz2 --force;
# No Upload if Pull Request
- name: No Upload
if: ${{ github.event_name == 'pull_request' }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*.idea
*.sqlite3
*.db
.vscode/
docs/_build
*~
tethys_gizmos/static/tethys_gizmos/less/bower_components/*
Expand Down
10 changes: 7 additions & 3 deletions scripts/install_tethys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,16 @@ then

source "${CONDA_HOME}/etc/profile.d/conda.sh"

# Install mamba
echo "Installing mamba..."
conda install -y -n base -c conda-forge mamba

if [ -n "${CLONE_REPO}" ]
then
# clone Tethys repo
echo "Cloning the Tethys Platform repo..."
conda activate
conda install --yes git
mamba install --yes git
git clone https://github.com/tethysplatform/tethys.git "${TETHYS_SRC}"
fi

Expand All @@ -349,9 +353,9 @@ then
then
# create conda env and install Tethys
echo "Setting up the ${CONDA_ENV_NAME} environment..."
conda env create -n ${CONDA_ENV_NAME} -f "${TETHYS_SRC}/environment.yml"
mamba env create -n ${CONDA_ENV_NAME} -f "${TETHYS_SRC}/environment.yml"
conda activate ${CONDA_ENV_NAME}
python "${TETHYS_SRC}/setup.py" develop
pip install -e ${TETHYS_SRC}
else
echo "Activating the ${CONDA_ENV_NAME} environment..."
conda activate ${CONDA_ENV_NAME}
Expand Down

0 comments on commit 450fba1

Please sign in to comment.