Revert "Modify build config"
This reverts commit 05617a3b56a905ceea16713d6cc5eb489631b325.
This commit is contained in:
parent
ca728839ac
commit
d62370b069
@ -73,10 +73,12 @@ package:
|
|||||||
when: manual
|
when: manual
|
||||||
stage: package
|
stage: package
|
||||||
script:
|
script:
|
||||||
|
- apt-get update
|
||||||
|
- apt-get install zip unzip
|
||||||
- cd api
|
- cd api
|
||||||
- composer install --no-dev
|
- composer install --no-dev
|
||||||
- cd ../ci
|
- cd ../ci
|
||||||
- bash build_release.sh
|
- bash build_zip.sh
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- release/
|
- release.zip
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
cd ../
|
|
||||||
mkdir release
|
|
||||||
TARGETDIR=release;for file in *;do test "$file" != "$TARGETDIR" && cp -r "$file" "$TARGETDIR/";done
|
|
||||||
|
|
||||||
# Remove files that we don't want to bundle
|
|
||||||
cd release
|
|
||||||
rm -rf ci
|
|
||||||
rm -rf .git
|
|
||||||
rm apidoc.json
|
|
||||||
rm CONTRIBUTING.md
|
|
||||||
|
|
||||||
cd ../
|
|
16
ci/build_zip.sh
Normal file
16
ci/build_zip.sh
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd ../
|
||||||
|
mkdir $VERSION_NUMBER
|
||||||
|
TARGETDIR=$VERSION_NUMBER;for file in *;do test "$file" != "$TARGETDIR" && cp -r "$file" "$TARGETDIR/";done
|
||||||
|
|
||||||
|
# Remove files that we don't want to bundle
|
||||||
|
cd $VERSION_NUMBER
|
||||||
|
rm -rf ci
|
||||||
|
rm -rf .git
|
||||||
|
rm apidoc.json
|
||||||
|
rm CONTRIBUTING.md
|
||||||
|
|
||||||
|
cd ../
|
||||||
|
zip -r release.zip $VERSION_NUMBER
|
||||||
|
rm -rf $VERSION_NUMBER
|
Loading…
x
Reference in New Issue
Block a user