diff options
Diffstat (limited to 'scripts/deploy.sh')
| -rwxr-xr-x | scripts/deploy.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 99129ad..b18d462 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
| 2 | # Upload web/ and verify every published artifact over the public URL. | 2 | # Upload web/ and verify every published artifact (GUI app and installers, |
| 3 | # terminal client and server) over the public URL. | ||
| 3 | # | 4 | # |
| 4 | # Usage: | 5 | # Usage: |
| 5 | # ./scripts/deploy.sh user@host:/srv/zagan.bet https://zagan.bet/ | 6 | # ./scripts/deploy.sh user@host:/srv/zagan.bet https://zagan.bet/ |
| @@ -50,7 +51,11 @@ done | |||
| 50 | [ -f web/index.php ] || die "web/index.php is missing" | 51 | [ -f web/index.php ] || die "web/index.php is missing" |
| 51 | 52 | ||
| 52 | shopt -s nullglob | 53 | shopt -s nullglob |
| 53 | artifacts=(web/bin/client/zagan-bet-* web/bin/server/zagan-bet-*) | 54 | artifacts=( |
| 55 | web/bin/gui/zagan-bet-* | ||
| 56 | web/bin/client/zagan-bet-* | ||
| 57 | web/bin/server/zagan-bet-* | ||
| 58 | ) | ||
| 54 | shopt -u nullglob | 59 | shopt -u nullglob |
| 55 | [ ${#artifacts[@]} -gt 0 ] || die "no artifacts in web/bin; run scripts/publish.sh first" | 60 | [ ${#artifacts[@]} -gt 0 ] || die "no artifacts in web/bin; run scripts/publish.sh first" |
| 56 | 61 | ||
