File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55# Move into the agent directory
66cd agent
77
8- # Force the root version to allow for reproducible builds (we use 0.0.0 so it's clear this is not a real version)
9- export COMPOSER_ROOT_VERSION=0.0.0
8+ # Check if we have a version argument
9+ if [ -z " $1 " ]; then
10+ # Set a default version if none is provided (we use 0.0.0 so it's clear this is not a real version)
11+ VERSION=" 0.0.0"
12+ else
13+ VERSION=" $1 "
14+ fi
15+
16+ # Force the root version to allow for reproducible builds
17+ export COMPOSER_ROOT_VERSION=$VERSION
1018
1119# Install composer dependencies (without dev dependencies since they are not needed in a production build)
1220composer install --prefer-dist --no-interaction --no-progress --no-dev
Original file line number Diff line number Diff line change @@ -5,3 +5,14 @@ if [ "$(uname -s)" != "Linux" ]; then
55 echo " Please use the GitHub Action."
66 exit 1
77fi
8+
9+ # Ensure we are in the root directory of the project
10+ SCRIPT_DIR=" $( dirname " $0 " ) "
11+ cd $SCRIPT_DIR /..
12+
13+ # Get the old and new version from the command line arguments
14+ OLD_VERSION=" ${1} "
15+ NEW_VERSION=" ${2} "
16+
17+ # Run a new phar build with the tagged version
18+ ./scripts/build.sh $NEW_VERSION
You can’t perform that action at this time.
0 commit comments