12345678910111213141516171819202122 |
- #!/bin/sh
- set -x
- # add dependencies
- # jq for parsing version information
- # git for cloning the repository
- apk add --no-cache jq git
- #clone the project
- git clone ${PROJECT_URL} ${PROJECT_NAME}
- cd ${PROJECT_NAME}
- git checkout ${CHECKOUT_BRANCH}
- # install the project
- npm install
- # inject the version number
- VERSION=$(jq -r '.version' package.json)
- sed -i "s/insert-version/${VERSION}/g" ./src/routes/settings.html/+page.svelte
- # build the project
- npm run build
|