Commit e7fc3470 authored by Tino Goratsch's avatar Tino Goratsch

some changes to the deployment

parent ae2a0ee8
Pipeline #17920276 canceled with stages
in 4 minutes and 29 seconds
......@@ -4,6 +4,7 @@ dist: trusty
group: edge
php:
- 7.1
- 7.2
- nightly
matrix:
......@@ -27,13 +28,9 @@ script:
after_success:
- travis_retry vendor/bin/coveralls -v
before_deploy:
- ./build/travis/generate_artifact.sh ${TRAVIS_PHP_VERSION}
deploy:
- provider: releases
api_key: ${ACP3_CI_USER_GH_TOKEN}
file: 'release.zip'
- provider: script
script: ./build/travis/update_version_check.sh ${TRAVIS_TAG}
skip_cleanup: true
on:
tags: true
......
#!/bin/bash
TRAVIS_PHP_VERSION=$1
if [[ ${TRAVIS_PHP_VERSION} = 7.1* ]]
then
if [ ! -f release.zip ]
then
rm -rf build/logs/ ./vendor
composer install --no-dev --prefer-dist -o -n --ignore-platform-reqs
zip -qr release.zip . -x *.git* "auth.json" ".codeclimate.yml" ".coveralls.yml" "editorconfig" ".eslintignore" ".eslintrc" ".gitattributes" ".gitignore" ".travis.yml" "./build/travis/*" "./ACP3/Core/Test/*" "./ACP3/Modules/*/Test/*"
fi
fi
#!/bin/bash
TRAVIS_TAG=$1
if [[ -n ${TRAVIS_TAG} ]]
then
if [[ ${TRAVIS_TAG} == v* ]]
then
TRAVIS_TAG_CROPPED=$(echo ${TRAVIS_TAG}| cut -d'v' -f 2)
else
TRAVIS_TAG_CROPPED=${TRAVIS_TAG}
fi
git clone https://github.com/ACP3/acp3.github.io.git ./build/acp3.github.io
cd ./build/acp3.github.io
git checkout master
rm update.txt
touch update.txt
echo "${TRAVIS_TAG_CROPPED}||https://gitlab.com/ACP3/cms/-/jobs/artifacts/${TRAVIS_TAG}/download?job=deploy%3Agenerate-artifact" >> update.txt
git add update.txt
git commit -am "Updated the latest version to ${TRAVIS_TAG}"
git push
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment