mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-22 06:23:01 +00:00
Add CI-only archive task
This commit is contained in:
parent
c4f0533af4
commit
13567a9cb5
1 changed files with 7 additions and 1 deletions
8
build
8
build
|
@ -58,6 +58,7 @@ if [[ "$#" -lt 1 ]]; then
|
||||||
echo -e " ${CACTION}client-watch${RS} - Watch for changes to the client code & rebuild automatically";
|
echo -e " ${CACTION}client-watch${RS} - Watch for changes to the client code & rebuild automatically";
|
||||||
echo -e " ${CACTION}docs${RS} - Render the documentation";
|
echo -e " ${CACTION}docs${RS} - Render the documentation";
|
||||||
echo -e " ${CACTION}ci${RS} - Perform CI tasks";
|
echo -e " ${CACTION}ci${RS} - Perform CI tasks";
|
||||||
|
echo -e " ${LC}${CACTION}archive${RS} - CI: Create release archive";
|
||||||
echo -e "";
|
echo -e "";
|
||||||
|
|
||||||
exit 1;
|
exit 1;
|
||||||
|
@ -247,7 +248,12 @@ task_docs() {
|
||||||
# ██████ ██
|
# ██████ ██
|
||||||
task_ci() {
|
task_ci() {
|
||||||
tasks_run setup setup-dev
|
tasks_run setup setup-dev
|
||||||
NODE_ENV="production" tasks_run client docs;
|
NODE_ENV="production" tasks_run client docs archive;
|
||||||
|
}
|
||||||
|
|
||||||
|
task_archive() {
|
||||||
|
# We include the data directory here because we assume that this task is ONLY run in a CI environment, so it should only contain the default setup generated by an earlier task.
|
||||||
|
tar -cafv "${ARCHIVE}/Air-Quality-Web.tar.gz" app/ __nightdocs/ lib/ logic/ vendor/ data/ *.php *.md LICENSE version settings.default.toml
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue