Revert "ci: push compressed build directory"

This reverts commit 23587799de4e40d3317d51c8cf754019b803775d.
This commit is contained in:
Siddarth Kumar 2024-12-19 22:29:11 +05:30
parent be7dc867f9
commit 699a1e2f67
No known key found for this signature in database
GPG Key ID: 599D10112BF518DB
5 changed files with 2 additions and 40 deletions

1
.gitignore vendored
View File

@ -14,7 +14,6 @@
# production
/build
/tiny-out
# misc
.DS_Store

2
Jenkinsfile vendored
View File

@ -45,7 +45,7 @@ pipeline {
ghp-import \
-b ${deployBranch()} \
-c ${deployDomain()} \
-p tiny-out
-p out
""", pure: false)
}
}

View File

@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "next dev",
"build": "./scripts/build.sh",
"build": "next build",
"start": "next start",
"lint": "next lint",
"prepare": "husky install"

View File

@ -1,11 +0,0 @@
#!/usr/bin/env bash
# vim: set ft=sh:
next build
# ghp-import in jenkins needs a directory
mkdir -p tiny-out
tar -czf tiny-out/out.tar.gz out/
# to execute in caddy-git exec post command
cp ./scripts/extract-output-and-clean.sh tiny-out/

View File

@ -1,26 +0,0 @@
#!/usr/bin/env bash
# vim: set ft=sh:
set -e
set -x
REPO_PATH="$(pwd)/repo"
TAR_FILE_PATH="${REPO_PATH}/out.tar.gz"
if [ -f "${TAR_FILE_PATH}" ]; then
echo "Found tar file"
if /usr/bin/tar -xzf "${TAR_FILE_PATH}" -C "${REPO_PATH}" --strip-components=1; then
echo "Successfully extracted tar file"
else
echo "Failed to extract tar file"
exit 1
fi
echo "successfully cleaned tar file at ${TAR_FILE_PATH}"
rm "${TAR_FILE_PATH}"
else
echo "Tar file not found"
exit 1
fi