-
-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2072 from jaimergp/netlify-previews
Enable PR previews on netlify
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[build] | ||
# Directory (relative to root of your repo) that contains the deploy-ready | ||
# HTML files and assets generated by the build. If a base directory has | ||
# been specified, include it in the publish directory path. | ||
publish = "build" | ||
|
||
# Default build command. | ||
command = """ | ||
curl -L -o miniforge.sh https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh && | ||
bash miniforge.sh -bfp ~/miniforge && | ||
rm -rf miniforge.sh && | ||
source ~/miniforge/etc/profile.d/conda.sh && | ||
conda env create -f .ci_scripts/environment.yml && | ||
conda activate conda-forge-docs && | ||
./.ci_scripts/update_docs | ||
""" | ||
|
||
# We only want to build PR previews. | ||
# Exit code == 0 means that the build is ignored. | ||
ignore = 'test "$PULL_REQUEST" == "false"' |