forked from tldr-pages/tldr
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
5 changed files
with
16 additions
and
16 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
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script is executed by Travis CI when a PR is merged (i.e. in the `deploy` step). | ||
# This script is executed by GitHub Actions when a PR is merged (i.e. in the `deploy` step). | ||
set -ex | ||
|
||
function initialize { | ||
if [ -z "$TLDRHOME" ]; then | ||
export TLDRHOME=${TRAVIS_BUILD_DIR:-$(pwd)} | ||
export TLDRHOME=${GITHUB_WORKSPACE:-$(pwd)} | ||
fi | ||
|
||
export TLDR_ARCHIVE="tldr.zip" | ||
export SITE_HOME="$HOME/site" | ||
export SITE_REPO_SLUG="tldr-pages/tldr-pages.github.io" | ||
|
||
# Configure git. | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Travis CI" | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions" | ||
git config --global push.default simple | ||
git config --global diff.zip.textconv "unzip -c -a" | ||
|
||
|
@@ -32,7 +32,7 @@ function upload_assets { | |
|
||
cd "$SITE_HOME" | ||
git add -A | ||
git commit -m "[TravisCI] uploaded assets after commits ${TRAVIS_COMMIT_RANGE}" | ||
git commit -m "[GitHub Actions] uploaded assets after commits ${TRAVIS_COMMIT_RANGE}" | ||
git push -q | ||
|
||
echo "Assets (pages archive, index) deployed to static site." | ||
|
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