-
-
Notifications
You must be signed in to change notification settings - Fork 670
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d192262
commit 3b6f0e0
Showing
3 changed files
with
22 additions
and
15 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
#!/bin/bash | ||
#!/bin/bash -e | ||
|
||
### Update latest information | ||
# See https://github.com/endoflife-date/endoflife.date/pull/2081 | ||
git submodule update --remote | ||
# Display context information | ||
echo "Current commit: $(git rev-parse HEAD)" | ||
echo "Ruby version: $(ruby --version)" | ||
echo "Python version: $(python --version)" | ||
echo "Jekyll version: $(bundle exec jekyll --version)" | ||
echo "Deploy URL: $1" | ||
|
||
# Update latest product information, see https://github.com/endoflife-date/endoflife.date/pull/2081 | ||
pip install -r requirements.txt | ||
# If the latest.py script fails, | ||
# We don't want to raise any errors | ||
# just undo the changes, and carry on | ||
if ! python3 _auto/latest.py ; then | ||
git checkout -- products/ | ||
git submodule update --remote | ||
if ! python3 _auto/latest.py ; then # ignore error if the latest.py script fails | ||
git checkout -- products/ # just undo the changes, and carry on | ||
fi | ||
|
||
# Replace the Deploy URL with the Preview URL | ||
if [ -n "$1" ]; then | ||
echo "Replacing Deploy URL with Preview URL ($1)" | ||
sed -i "/url\:/curl\: $1" _config.yml | ||
fi | ||
|
||
# Finally, do a build | ||
bundle exec jekyll build | ||
# Finally, do a full build | ||
bundle exec jekyll build --trace --verbose |
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