Skip to content

Commit 1b482a0

Browse files
Updated files with 'repo_helper'. (#7)
Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>
1 parent 1a5ac7c commit 1b482a0

File tree

2 files changed

+29
-33
lines changed

2 files changed

+29
-33
lines changed

.github/actions_build_conda.sh

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,22 @@
33

44
set -e -x
55

6-
python -m repo_helper make-recipe || exit 1
6+
python -m repo_helper make-recipe || exit 1
77

8-
# Switch to miniconda
9-
source "/home/runner/miniconda/etc/profile.d/conda.sh"
10-
hash -r
11-
conda activate base
12-
conda config --set always_yes yes --set changeps1 no
13-
conda update -q conda
14-
conda install conda-build
15-
conda install anaconda-client
16-
conda info -a
8+
# Switch to miniconda
9+
source "/home/runner/miniconda/etc/profile.d/conda.sh"
10+
hash -r
11+
conda activate base
12+
conda config --set always_yes yes --set changeps1 no
13+
conda update -q conda
14+
conda install conda-build
15+
conda install anaconda-client
16+
conda info -a
1717

18-
conda config --add channels domdfcoding || exit 1
18+
conda config --add channels domdfcoding || exit 1
1919

20-
conda config --add channels conda-forge || exit 1
20+
conda config --add channels conda-forge || exit 1
2121

22-
conda build conda -c domdfcoding -c conda-forge --output-folder conda/dist --skip-existing
23-
24-
fi
22+
conda build conda -c domdfcoding -c conda-forge --output-folder conda/dist --skip-existing
2523

2624
exit 0

.github/actions_deploy_conda.sh

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,22 @@
33

44
set -e -x
55

6-
# Switch to miniconda
7-
source "/home/runner/miniconda/etc/profile.d/conda.sh"
8-
hash -r
9-
conda activate base
10-
conda config --set always_yes yes --set changeps1 no
11-
conda update -q conda
12-
conda install anaconda-client
13-
conda info -a
6+
# Switch to miniconda
7+
source "/home/runner/miniconda/etc/profile.d/conda.sh"
8+
hash -r
9+
conda activate base
10+
conda config --set always_yes yes --set changeps1 no
11+
conda update -q conda
12+
conda install anaconda-client
13+
conda info -a
1414

15-
for f in conda/dist/noarch/domdf_python_tools-*.tar.bz2; do
16-
[ -e "$f" ] || continue
17-
echo "$f"
18-
conda install "$f" || exit 1
19-
echo "Deploying to Anaconda.org..."
20-
anaconda -t "$ANACONDA_TOKEN" upload "$f" || exit 1
21-
echo "Successfully deployed to Anaconda.org."
22-
done
23-
24-
fi
15+
for f in conda/dist/noarch/domdf_python_tools-*.tar.bz2; do
16+
[ -e "$f" ] || continue
17+
echo "$f"
18+
conda install "$f" || exit 1
19+
echo "Deploying to Anaconda.org..."
20+
anaconda -t "$ANACONDA_TOKEN" upload "$f" || exit 1
21+
echo "Successfully deployed to Anaconda.org."
22+
done
2523

2624
exit 0

0 commit comments

Comments
 (0)