Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy.sh: make EXTRA_FILES preserve directory structure #88

Merged
merged 1 commit into from
Sep 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources.whatwg.org/build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ For non-local deploys, it is dependent on the following environment setup:
Optional environment variables:
- `$SERVER` is the server to deploy to.
- `$SERVER_PUBLIC_KEY` is the public key of the deploy server, in the format of `known_hosts`.
- `$EXTRA_FILES` are extra files to copy for each build. Shell wildcards are allowed. Example: `EXTRA_FILES="*.png"`.
- `$EXTRA_FILES` are extra files to copy for each build. Shell wildcards are allowed, and directory structure will be preserved. Example: `EXTRA_FILES="images/*.png"`.
- `$POST_BUILD_STEP` is an extra step to run after each build. Evaluated with the `$DIR` variable set to the build directory. Example: `POST_BUILD_STEP='python generate-stuff.py "$DIR"'`.

An example `.travis.yml` file that uses this script would then be as follows:
Expand Down
2 changes: 1 addition & 1 deletion resources.whatwg.org/build/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ copy_extra_files() {
echo "Copying extra files ($EXTRA_FILES) to $1"
# Will not pass shellcheck: https://stackoverflow.com/q/45931553/3191
# shellcheck disable=SC2086
cp $EXTRA_FILES "$1"
rsync --relative $EXTRA_FILES "$1"
fi
}

Expand Down