Loading .gitlab-ci.yml +1 −45 Original line number Diff line number Diff line Loading @@ -24,48 +24,4 @@ build: deploy: stage: deploy script: - ./gradlew publish -x test $NEXUS_CREDENTIALS only: - master docs: stage: deploy script: - | if [[ $VERSION = *"SNAPSHOT" || $VERSION = *"RELEASE" ]]; then echo "Building documentation for $ARTIFACT $VERSION" cd docs echo "-- Setting up Virtualenv" virtualenv venv pwd . venv/bin/activate echo "-- Installing requirements" pip install -r requirements.txt echo "-- Building HTML version within $(pwd)" make clean html echo "-- Creating package" fpm -t deb -a noarch -s dir --name dme-doc \ --description='DARIAH-DE DME Documentation' \ --maintainer='DARIAH-DE <info@de.dariah.eu>' \ --vendor='DARIAH-DE' \ --url='https://dme.de.dariah.eu' \ --version $VERSION \ -x ".git**" \ -x "**/.git**" \ -x "**/.hg**" \ -x "**/.svn**" \ -x ".buildinfo" \ -x "**/*.deb" \ --prefix /var/www/doc/dme \ -C _build/html . ~/scripts/push_deb_packages.sh ./ fi only: - master - docs No newline at end of file - ./gradlew publish $NEXUS_CREDENTIALS Loading
.gitlab-ci.yml +1 −45 Original line number Diff line number Diff line Loading @@ -24,48 +24,4 @@ build: deploy: stage: deploy script: - ./gradlew publish -x test $NEXUS_CREDENTIALS only: - master docs: stage: deploy script: - | if [[ $VERSION = *"SNAPSHOT" || $VERSION = *"RELEASE" ]]; then echo "Building documentation for $ARTIFACT $VERSION" cd docs echo "-- Setting up Virtualenv" virtualenv venv pwd . venv/bin/activate echo "-- Installing requirements" pip install -r requirements.txt echo "-- Building HTML version within $(pwd)" make clean html echo "-- Creating package" fpm -t deb -a noarch -s dir --name dme-doc \ --description='DARIAH-DE DME Documentation' \ --maintainer='DARIAH-DE <info@de.dariah.eu>' \ --vendor='DARIAH-DE' \ --url='https://dme.de.dariah.eu' \ --version $VERSION \ -x ".git**" \ -x "**/.git**" \ -x "**/.hg**" \ -x "**/.svn**" \ -x ".buildinfo" \ -x "**/*.deb" \ --prefix /var/www/doc/dme \ -C _build/html . ~/scripts/push_deb_packages.sh ./ fi only: - master - docs No newline at end of file - ./gradlew publish $NEXUS_CREDENTIALS